Client - init Italian (it) 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',
|
||||
// it: 'd MMM yyyy',
|
||||
// nb: 'do MMM yyyy',
|
||||
nl: 'd MMM yyyy',
|
||||
}
|
||||
|
@ -8,6 +8,7 @@ export const localeFromLanguage: Record<string, Locale> = {
|
||||
de: de,
|
||||
en: enUS,
|
||||
fr: fr,
|
||||
// it: it,
|
||||
// nb: nb, // disabled for now
|
||||
nl: nl,
|
||||
}
|
||||
@ -16,6 +17,7 @@ export const languageLabels: Record<string, string> = {
|
||||
de: 'Deutsch',
|
||||
en: 'English',
|
||||
fr: 'Français',
|
||||
// it: 'Italiano',
|
||||
// nb: 'Norsk bokmål', // disabled for now
|
||||
nl: 'Nederlands',
|
||||
}
|
||||
|
@ -13,10 +13,14 @@ export const setZxcvbnOptions = async (language: string) => {
|
||||
const zxcvbnDePackage = await import(
|
||||
/* webpackChunkName: "password" */ '@zxcvbn-ts/language-de'
|
||||
)
|
||||
const zxcvbnItPackage = await import(
|
||||
/* webpackChunkName: "password" */ '@zxcvbn-ts/language-it'
|
||||
)
|
||||
const zxcvbnLangPackages: Record<string, typeof zxcvbnEnPackage> = {
|
||||
de: zxcvbnDePackage,
|
||||
en: zxcvbnEnPackage,
|
||||
fr: zxcvbnFrPackage,
|
||||
it: zxcvbnItPackage,
|
||||
// no package available for norwegian bokmal, fallback on english
|
||||
nb: zxcvbnEnPackage,
|
||||
// no package available for dutch (Nederlands), fallback on english
|
||||
|
Reference in New Issue
Block a user