Client - init Italian (it) translation files
This commit is contained in:
@ -6,7 +6,7 @@ import { createI18n, LocaleMessages, VueMessageType } from 'vue-i18n'
|
||||
* The loaded `JSON` locale messages is pre-compiled by `@intlify/vue-i18n-loader`, which is integrated into `vue-cli-plugin-i18n`.
|
||||
* See: https://github.com/intlify/vue-i18n-loader#rocket-i18n-resource-pre-compilation
|
||||
*/
|
||||
const disabledLanguages = ['nb'] // to update after translations release
|
||||
const disabledLanguages = ['it', 'nb'] // to update after translations release
|
||||
|
||||
function loadLocaleMessages(): Record<string, LocaleMessages<VueMessageType>> {
|
||||
const locales = require.context('./locales', true, /[A-Za-z0-9-_,\s]+\.ts$/i)
|
||||
|
2
fittrackee_client/src/locales/it/about.json
Normal file
2
fittrackee_client/src/locales/it/about.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/it/administration.json
Normal file
2
fittrackee_client/src/locales/it/administration.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/it/api.json
Normal file
2
fittrackee_client/src/locales/it/api.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/it/buttons.json
Normal file
2
fittrackee_client/src/locales/it/buttons.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/it/common.json
Normal file
2
fittrackee_client/src/locales/it/common.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/it/dashboard.json
Normal file
2
fittrackee_client/src/locales/it/dashboard.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/it/error.json
Normal file
2
fittrackee_client/src/locales/it/error.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
27
fittrackee_client/src/locales/it/it.ts
Normal file
27
fittrackee_client/src/locales/it/it.ts
Normal file
@ -0,0 +1,27 @@
|
||||
import AboutTranslations from './about.json'
|
||||
import AdministrationTranslations from './administration.json'
|
||||
import ApiTranslations from './api.json'
|
||||
import ButtonsTranslations from './buttons.json'
|
||||
import CommonTranslations from './common.json'
|
||||
import DashboardTranslations from './dashboard.json'
|
||||
import ErrorTranslations from './error.json'
|
||||
import OAuth2Translations from './oauth2.json'
|
||||
import SportsTranslations from './sports.json'
|
||||
import StatisticsTranslations from './statistics.json'
|
||||
import UserTranslations from './user.json'
|
||||
import WorkoutsTranslations from './workouts.json'
|
||||
|
||||
export default {
|
||||
about: AboutTranslations,
|
||||
admin: AdministrationTranslations,
|
||||
api: ApiTranslations,
|
||||
buttons: ButtonsTranslations,
|
||||
common: CommonTranslations,
|
||||
dashboard: DashboardTranslations,
|
||||
error: ErrorTranslations,
|
||||
oauth2: OAuth2Translations,
|
||||
sports: SportsTranslations,
|
||||
statistics: StatisticsTranslations,
|
||||
user: UserTranslations,
|
||||
workouts: WorkoutsTranslations,
|
||||
}
|
2
fittrackee_client/src/locales/it/oauth2.json
Normal file
2
fittrackee_client/src/locales/it/oauth2.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/it/sports.json
Normal file
2
fittrackee_client/src/locales/it/sports.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/it/statistics.json
Normal file
2
fittrackee_client/src/locales/it/statistics.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/it/user.json
Normal file
2
fittrackee_client/src/locales/it/user.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/it/workouts.json
Normal file
2
fittrackee_client/src/locales/it/workouts.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
@ -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