Converted variables to be runtime.

This commit is contained in:
Mike Cao 2025-07-24 22:41:23 -07:00
parent b6862de2be
commit 5b6292dd11
11 changed files with 46 additions and 36 deletions

View file

@ -20,7 +20,7 @@ function getDefaultTheme() {
}
const initialState = {
locale: getItem(LOCALE_CONFIG) || DEFAULT_LOCALE,
locale: getItem(LOCALE_CONFIG) || process.env.defaultLocale || DEFAULT_LOCALE,
theme: getItem(THEME_CONFIG) || getDefaultTheme() || DEFAULT_THEME,
timezone: getItem(TIMEZONE_CONFIG) || getTimezone(),
dateRange: getItem(DATE_RANGE_CONFIG) || DEFAULT_DATE_RANGE,