mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
[i18n] Translate ML - index.js (#27976)
* Translate index.js * Resolve issue from review comment
This commit is contained in:
parent
99f99291ef
commit
fdfbd57a89
1 changed files with 7 additions and 2 deletions
|
@ -28,6 +28,7 @@ import { resultsServiceRoutes } from './server/routes/results_service';
|
||||||
import { jobServiceRoutes } from './server/routes/job_service';
|
import { jobServiceRoutes } from './server/routes/job_service';
|
||||||
import { jobAuditMessagesRoutes } from './server/routes/job_audit_messages';
|
import { jobAuditMessagesRoutes } from './server/routes/job_audit_messages';
|
||||||
import { fileDataVisualizerRoutes } from './server/routes/file_data_visualizer';
|
import { fileDataVisualizerRoutes } from './server/routes/file_data_visualizer';
|
||||||
|
import { i18n } from '@kbn/i18n';
|
||||||
|
|
||||||
export const ml = (kibana) => {
|
export const ml = (kibana) => {
|
||||||
return new kibana.Plugin({
|
return new kibana.Plugin({
|
||||||
|
@ -38,8 +39,12 @@ export const ml = (kibana) => {
|
||||||
|
|
||||||
uiExports: {
|
uiExports: {
|
||||||
app: {
|
app: {
|
||||||
title: 'Machine Learning',
|
title: i18n.translate('xpack.ml.mlNavTitle', {
|
||||||
description: 'Machine Learning for the Elastic Stack',
|
defaultMessage: 'Machine Learning'
|
||||||
|
}),
|
||||||
|
description: i18n.translate('xpack.ml.mlNavDescription', {
|
||||||
|
defaultMessage: 'Machine Learning for the Elastic Stack'
|
||||||
|
}),
|
||||||
icon: 'plugins/ml/ml.svg',
|
icon: 'plugins/ml/ml.svg',
|
||||||
euiIconType: 'machineLearningApp',
|
euiIconType: 'machineLearningApp',
|
||||||
main: 'plugins/ml/app',
|
main: 'plugins/ml/app',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue