Skip to content

Commit

Permalink
Feat: Add default_lang enviroment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
humbertleonardo committed Jul 27, 2023
1 parent bc0beb0 commit eeae168
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.defaultLang ?? 'en-US';
export const DEFAULT_THEME = 'light';
export const DEFAULT_ANIMATION_DURATION = 300;
export const DEFAULT_DATE_RANGE = '24hour';
Expand Down
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ if (process.env.CLOUD_MODE && process.env.CLOUD_URL && process.env.DISABLE_LOGIN
const config = {
env: {
currentVersion: pkg.version,
defaultLang: process.env.DEFAULT_LANG,
isProduction: process.env.NODE_ENV === 'production',
},
basePath: process.env.BASE_PATH,
Expand Down

0 comments on commit eeae168

Please sign in to comment.