[7.x] [i18n] move translations into NP plugin (#39177) (#39664)

* new platform xpack plugin

* update env snapshot

* update all snapshots

* plugin service tests

* fix scripts/check_ts_projects.js

* update i18nrc

* run i18n_check
This commit is contained in:
Ahmad Bamieh 2019-06-26 16:21:13 +03:00 committed by GitHub
parent f0fcee664f
commit f3742b8728
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 11 deletions

View file

@ -61,7 +61,7 @@
},
"exclude": ["src/legacy/ui/ui_render/ui_render_mixin.js"],
"translations": [
"x-pack/legacy/plugins/translations/translations/zh-CN.json",
"x-pack/legacy/plugins/translations/translations/ja-JP.json"
"x-pack/plugins/translations/translations/zh-CN.json",
"x-pack/plugins/translations/translations/ja-JP.json"
]
}

View file

@ -35,7 +35,6 @@ import { rollup } from './legacy/plugins/rollup';
import { siem } from './legacy/plugins/siem';
import { remoteClusters } from './legacy/plugins/remote_clusters';
import { crossClusterReplication } from './legacy/plugins/cross_cluster_replication';
import { translations } from './legacy/plugins/translations';
import { upgradeAssistant } from './legacy/plugins/upgrade_assistant';
import { uptime } from './legacy/plugins/uptime';
import { ossTelemetry } from './legacy/plugins/oss_telemetry';
@ -80,7 +79,6 @@ module.exports = function (kibana) {
siem(kibana),
remoteClusters(kibana),
crossClusterReplication(kibana),
translations(kibana),
upgradeAssistant(kibana),
uptime(kibana),
ossTelemetry(kibana),

View file

@ -0,0 +1,8 @@
{
"id": "translations",
"version": "0.0.1",
"kibanaVersion": "kibana",
"configPath": ["x-pack", "translations"],
"server": true,
"ui": false
}

View file

@ -4,12 +4,14 @@
* you may not use this file except in compliance with the Elastic License.
*/
export function translations(kibana: any) {
return new kibana.Plugin({
id: 'translations',
class TranslationsPlugin {
public setup() {
return {};
}
init() {
// There is nothing to initialize.
},
});
public start() {
return {};
}
}
export const plugin = () => new TranslationsPlugin();

View file

@ -5,6 +5,7 @@
"legacy/common/**/*",
"legacy/server/**/*",
"legacy/plugins/**/*",
"plugins/**/*",
"test_utils/**/*"
],
"exclude": [