fix(i18n): add default locale
This commit is contained in:
parent
19fc53854f
commit
2b9659a1c2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user