Skip to content

Commit

Permalink
fix i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
clintandrewhall committed Mar 13, 2023
1 parent 59ad746 commit a1aa9cd
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 24 deletions.
69 changes: 52 additions & 17 deletions x-pack/.i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@
"xpack.features": "plugins/features",
"xpack.dataVisualizer": "plugins/data_visualizer",
"xpack.fileUpload": "plugins/file_upload",
"xpack.globalSearch": ["plugins/global_search"],
"xpack.globalSearchBar": ["plugins/global_search_bar"],
"xpack.graph": ["plugins/graph"],
"xpack.globalSearch": [
"plugins/global_search"
],
"xpack.globalSearchBar": [
"plugins/global_search_bar"
],
"xpack.graph": [
"plugins/graph"
],
"xpack.grokDebugger": "plugins/grokdebugger",
"xpack.idxMgmt": "plugins/index_management",
"xpack.indexLifecycleMgmt": "plugins/index_lifecycle_management",
Expand All @@ -40,45 +46,74 @@
"xpack.licenseMgmt": "plugins/license_management",
"xpack.licensing": "plugins/licensing",
"xpack.lists": "plugins/lists",
"xpack.logstash": ["plugins/logstash"],
"xpack.logstash": [
"plugins/logstash"
],
"xpack.main": "legacy/plugins/xpack_main",
"xpack.maps": ["plugins/maps"],
"xpack.aiops": ["packages/ml/aiops_components", "plugins/aiops"],
"xpack.ml": ["packages/ml/date_picker", "plugins/ml"],
"xpack.monitoring": ["plugins/monitoring"],
"xpack.osquery": ["plugins/osquery"],
"xpack.maps": [
"plugins/maps"
],
"xpack.aiops": [
"packages/ml/aiops_components",
"plugins/aiops"
],
"xpack.ml": [
"packages/ml/date_picker",
"plugins/ml"
],
"xpack.monitoring": [
"plugins/monitoring"
],
"xpack.osquery": [
"plugins/osquery"
],
"xpack.painlessLab": "plugins/painless_lab",
"xpack.profiling": [ "plugins/profiling" ],
"xpack.profiling": [
"plugins/profiling"
],
"xpack.remoteClusters": "plugins/remote_clusters",
"xpack.reporting": ["plugins/reporting"],
"xpack.rollupJobs": ["plugins/rollup"],
"xpack.reporting": [
"plugins/reporting"
],
"xpack.rollupJobs": [
"plugins/rollup"
],
"xpack.runtimeFields": "plugins/runtime_fields",
"xpack.screenshotting": "plugins/screenshotting",
"xpack.searchProfiler": "plugins/searchprofiler",
"xpack.security": "plugins/security",
"xpack.server": "legacy/server",
"xpack.serverless": "plugins/serverless",
"xpack.securitySolution": "plugins/security_solution",
"xpack.sessionView": "plugins/session_view",
"xpack.snapshotRestore": "plugins/snapshot_restore",
"xpack.spaces": "plugins/spaces",
"xpack.savedObjectsTagging": ["plugins/saved_objects_tagging"],
"xpack.savedObjectsTagging": [
"plugins/saved_objects_tagging"
],
"xpack.taskManager": "legacy/plugins/task_manager",
"xpack.timelines": "plugins/timelines",
"xpack.transform": "plugins/transform",
"xpack.triggersActionsUI": "plugins/triggers_actions_ui",
"xpack.upgradeAssistant": "plugins/upgrade_assistant",
"xpack.synthetics": ["plugins/synthetics"],
"xpack.ux": ["plugins/ux"],
"xpack.synthetics": [
"plugins/synthetics"
],
"xpack.ux": [
"plugins/ux"
],
"xpack.urlDrilldown": "plugins/drilldowns/url_drilldown",
"xpack.watcher": "plugins/watcher",
"xpack.observability": "plugins/observability",
"xpack.banners": "plugins/banners",
"xpack.threatIntelligence": "plugins/threat_intelligence"
},
"exclude": ["examples"],
"exclude": [
"examples"
],
"translations": [
"@kbn/translations-plugin/translations/zh-CN.json",
"@kbn/translations-plugin/translations/ja-JP.json",
"@kbn/translations-plugin/translations/fr-FR.json"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,13 @@

import React from 'react';

import { i18n } from '@kbn/i18n';

import { Logo, type Props } from './logo';

export const Loader = (props: Props) => (
<div className="kbnWelcomeView" id="kbn_loading_message" data-test-subj="kbnLoadingMessage">
<div className="kbnLoaderWrap">
<Logo {...props} />
<div className="kbnWelcomeText">
{i18n.translate('core.ui.welcomeMessage', {
defaultMessage: 'Loading Project',
})}
</div>
<div className="kbnWelcomeText">Loading Project</div>
<div className="kbnProgress" />
</div>
</div>
Expand Down

0 comments on commit a1aa9cd

Please sign in to comment.