diff --git a/dev/prod/src/platform.ts b/dev/prod/src/platform.ts index 3e701f1bb4..a6e848bd4c 100644 --- a/dev/prod/src/platform.ts +++ b/dev/prod/src/platform.ts @@ -90,6 +90,7 @@ interface Config { GMAIL_URL: string CALENDAR_URL: string TITLE?: string + LANGUAGES?: string DEFAULT_LANGUAGE?: string } @@ -117,6 +118,9 @@ export async function configurePlatform() { setMetadata(uiPlugin.metadata.DefaultApplication, login.component.LoginApp) + const languages = config.LANGUAGES ? (config.LANGUAGES as string).split(',').map((l) => l.trim()) : ['en', 'ru'] + + setMetadata(uiPlugin.metadata.Languages, languages) setMetadata( uiPlugin.metadata.Routes, new Map([ diff --git a/packages/ui/src/components/internal/LangSelector.svelte b/packages/ui/src/components/internal/LangSelector.svelte index 43abd741d8..8d09c76370 100644 --- a/packages/ui/src/components/internal/LangSelector.svelte +++ b/packages/ui/src/components/internal/LangSelector.svelte @@ -14,6 +14,7 @@ -->