fix(i18n): add default locale

This commit is contained in:
Jacky Zhao
2024-02-05 14:19:21 -08:00
parent 726beccbe3
commit d74e34b09b

View File

@@ -13,5 +13,5 @@ export const TRANSLATIONS = {
"nl-NL": nl,
} as const
export const i18n = (locale: ValidLocale): Translation => TRANSLATIONS[locale]
export const i18n = (locale: ValidLocale): Translation => TRANSLATIONS[locale ?? "en-US"]
export type ValidLocale = keyof typeof TRANSLATIONS