Skip to content

Commit

Permalink
✨ feat: add constant about i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelicElegy committed Jun 24, 2024
1 parent 08a8d4c commit b8efb5e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/constants/i18n.ts
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',
});

0 comments on commit b8efb5e

Please sign in to comment.