Merge pull request #2151 from humbertleonardo/master

Feat: Add default_lang enviroment variable
This commit is contained in:
Mike Cao authored and GitHub committed 2023-07-28 11:30:46 -07:00
commit 3e507421a1
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ export const REPO_URL = 'https://github.com/umami-software/umami';
export const UPDATES_URL = 'https://api.umami.is/v1/updates';
export const TELEMETRY_PIXEL = 'https://i.umami.is/a.png';
export const DEFAULT_LOCALE = 'en-US';
export const DEFAULT_LOCALE = process.env.defaultLocale ?? 'en-US';
export const DEFAULT_THEME = 'light';
export const DEFAULT_ANIMATION_DURATION = 300;
export const DEFAULT_DATE_RANGE = '24hour';
+1
View File
@@ -74,6 +74,7 @@ if (process.env.CLOUD_MODE && process.env.CLOUD_URL && process.env.DISABLE_LOGIN
const config = {
env: {
currentVersion: pkg.version,
defaultLocale: process.env.DEFAULT_LOCALE,
isProduction: process.env.NODE_ENV === 'production',
},
basePath: process.env.BASE_PATH,