-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08a8d4c
commit b8efb5e
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// default language | ||
export const DEFAULT_LANG = 'en-US'; | ||
// locale cookie | ||
export const LOBE_LOCALE_COOKIE = 'LOBE_LOCALE'; | ||
// cookie cache days | ||
export const COOKIE_CACHE_DAYS = 30; | ||
// debug mode | ||
export const getDebugConfig = () => ({ | ||
// developer debug mode | ||
DEBUG_MODE: process.env.NEXT_PUBLIC_DEVELOPER_DEBUG === '1', | ||
|
||
// i18n debug mode | ||
I18N_DEBUG: process.env.NEXT_PUBLIC_I18N_DEBUG === '1', | ||
I18N_DEBUG_BROWSER: process.env.NEXT_PUBLIC_I18N_DEBUG_BROWSER === '1', | ||
I18N_DEBUG_SERVER: process.env.NEXT_PUBLIC_I18N_DEBUG_SERVER === '1', | ||
}); |