UBER-318: Allow to configure default language (#3342)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-06-05 14:36:04 +07:00
committed by GitHub
parent d0d98f286c
commit b6f9dba84a
10 changed files with 43 additions and 9 deletions
+3
View File
@@ -78,6 +78,7 @@ import presentation, { presentationId } from '@hcengineering/presentation'
import { textEditorId } from '@hcengineering/text-editor'
import { setMetadata } from '@hcengineering/platform'
import { setDefaultLanguage } from '@hcengineering/theme'
interface Config {
ACCOUNTS_URL: string
@@ -88,6 +89,7 @@ interface Config {
TELEGRAM_URL: string
GMAIL_URL: string
TITLE?: string
DEFAULT_LANGUAGE?: string
}
const devConfig = process.env.CLIENT_TYPE === 'dev-production'
@@ -163,4 +165,5 @@ export async function configurePlatform() {
setMetadata(client.metadata.UseProtocolCompression, true)
setMetadata(workbench.metadata.PlatformTitle, config.TITLE ?? 'Platform')
setDefaultLanguage(config.DEFAULT_LANGUAGE ?? 'en')
}