mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
I18n: Expose current UI language in @grafana/runtime config (#84457)
* I18n: Expose current UI language in Grafana config * fix
This commit is contained in:
+2
-1
@@ -42,7 +42,7 @@ import { setPanelDataErrorView } from '@grafana/runtime/src/components/PanelData
|
||||
import { setPanelRenderer } from '@grafana/runtime/src/components/PanelRenderer';
|
||||
import { setPluginPage } from '@grafana/runtime/src/components/PluginPage';
|
||||
import { getScrollbarWidth } from '@grafana/ui';
|
||||
import config from 'app/core/config';
|
||||
import config, { updateConfig } from 'app/core/config';
|
||||
import { arrayMove } from 'app/core/utils/arrayMove';
|
||||
import { getStandardTransformers } from 'app/features/transformers/standardTransformers';
|
||||
|
||||
@@ -126,6 +126,7 @@ export class GrafanaApp {
|
||||
parent.postMessage('GrafanaAppInit', '*');
|
||||
|
||||
const initI18nPromise = initializeI18n(config.bootData.user.language);
|
||||
initI18nPromise.then(({ language }) => updateConfig({ language }));
|
||||
|
||||
setBackendSrv(backendSrv);
|
||||
initEchoSrv();
|
||||
|
||||
Reference in New Issue
Block a user