mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* 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:
parent
f0fcee664f
commit
f3742b8728
7 changed files with 20 additions and 11 deletions
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
|
|
8
x-pack/plugins/translations/kibana.json
Normal file
8
x-pack/plugins/translations/kibana.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"id": "translations",
|
||||
"version": "0.0.1",
|
||||
"kibanaVersion": "kibana",
|
||||
"configPath": ["x-pack", "translations"],
|
||||
"server": true,
|
||||
"ui": false
|
||||
}
|
|
@ -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();
|
|
@ -5,6 +5,7 @@
|
|||
"legacy/common/**/*",
|
||||
"legacy/server/**/*",
|
||||
"legacy/plugins/**/*",
|
||||
"plugins/**/*",
|
||||
"test_utils/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue