Client - init Polish (pl) translation files

This commit is contained in:
Sam
2023-05-03 20:03:02 +02:00
parent d37f207cc8
commit 67d434aa6e
18 changed files with 56 additions and 1 deletions

View File

@ -100,6 +100,7 @@ export const dateStringFormats: Record<string, string> = {
fr: 'd MMM yyyy',
gl: 'd MMM yyyy',
it: 'd MMM yyyy',
// pl: 'd MMM yyyy', // disabled for now
nb: 'do MMM yyyy',
nl: 'd MMM yyyy',
}

View File

@ -11,6 +11,7 @@ export const localeFromLanguage: Record<string, Locale> = {
fr: fr,
gl: gl,
it: it,
// pl: pl,
nb: nb,
nl: nl,
}
@ -22,6 +23,7 @@ export const languageLabels: Record<string, string> = {
fr: 'Français',
gl: 'Galego',
it: 'Italiano',
// pl: 'Polski',
nb: 'Norsk bokmål',
nl: 'Nederlands',
}

View File

@ -23,6 +23,11 @@ export const loadLanguagePackage = async (language: string) => {
return await import(
/* webpackChunkName: "password.es" */ '@zxcvbn-ts/language-es-es'
)
// TODO: add package
// case 'pl':
// return await import(
// /* webpackChunkName: "password.pl" */ '@zxcvbn-ts/language-pl'
// )
default:
return await import(
/* webpackChunkName: "password.en" */ '@zxcvbn-ts/language-en'