mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-09 14:51:30 +01:00
Théo LUDWIG
6b29ce9b15
Improvements: - Hide switch theme input (ugly little white square) - i18n without subpath (e.g: /fr or /en), same url whatever the locale used
9 lines
327 B
TypeScript
9 lines
327 B
TypeScript
/** How long in milliseconds, until the cookie expires (10 years). */
|
|
export const COOKIE_MAX_AGE = 10 * 365.25 * 24 * 60 * 60 * 1000
|
|
|
|
export const AVAILABLE_LOCALES = ['en-US', 'fr-FR'] as const
|
|
|
|
export type AvailableLocale = (typeof AVAILABLE_LOCALES)[number]
|
|
|
|
export const DEFAULT_LOCALE = 'en-US' satisfies AvailableLocale
|