Client - init Norwegian Bokmål (nb) translation files
This commit is contained in:
@ -97,6 +97,7 @@ const dateStringFormats: Record<string, string> = {
|
||||
de: 'do MMM yyyy',
|
||||
en: 'MMM. do, yyyy',
|
||||
fr: 'd MMM yyyy',
|
||||
// nb: 'do MMM yyyy',
|
||||
}
|
||||
|
||||
export const getDateFormat = (dateFormat: string, language: string): string => {
|
||||
|
@ -8,12 +8,14 @@ export const localeFromLanguage: Record<string, Locale> = {
|
||||
de: de,
|
||||
en: enUS,
|
||||
fr: fr,
|
||||
// nb: nb, // disabled for now
|
||||
}
|
||||
|
||||
export const languageLabels: Record<string, string> = {
|
||||
de: 'Deutsch',
|
||||
en: 'English',
|
||||
fr: 'Français',
|
||||
// nb: 'Norsk bokmål', // disabled for now
|
||||
}
|
||||
|
||||
const { availableLocales } = createI18n.global
|
||||
|
@ -17,6 +17,8 @@ export const setZxcvbnOptions = async (language: string) => {
|
||||
de: zxcvbnDePackage,
|
||||
en: zxcvbnEnPackage,
|
||||
fr: zxcvbnFrPackage,
|
||||
// no package available for norwegian bokmal, fallback on english
|
||||
nb: zxcvbnEnPackage,
|
||||
}
|
||||
const zxcvbnPackage = zxcvbnLangPackages[language]
|
||||
const options = {
|
||||
|
Reference in New Issue
Block a user