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 -1
View File
@@ -19,6 +19,7 @@ import { setMetadata } from '@hcengineering/platform'
import serverToken from '@hcengineering/server-token'
import { start } from '.'
const defaultLanguage = process.env.DEFAULT_LANGUAGE ?? 'en'
const SERVER_PORT = parseInt(process.env.SERVER_PORT ?? '8080')
const transactorEndpoint = process.env.TRANSACTOR_URL
@@ -122,7 +123,8 @@ const config = {
gmailUrl,
telegramUrl,
rekoniUrl,
title
title,
defaultLanguage
}
console.log('Starting Front service with', config)
const shutdown = start(config, SERVER_PORT)
+3 -1
View File
@@ -141,6 +141,7 @@ export function start (
telegramUrl: string
gmailUrl: string
title?: string
defaultLanguage: string
},
port: number
): () => void {
@@ -177,7 +178,8 @@ export function start (
REKONI_URL: config.rekoniUrl,
TELEGRAM_URL: config.telegramUrl,
GMAIL_URL: config.gmailUrl,
TITLE: config.title
TITLE: config.title,
DEFAULT_LANGUAGE: config.defaultLanguage
})
})