mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 20:57:45 +02:00
UBER-318: Allow to configure default language (#3342)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user