Client - init Italian (it) translation files
This commit is contained in:
parent
ad32f3b33d
commit
bd8df6af3d
@ -18,6 +18,7 @@
|
|||||||
"@zxcvbn-ts/language-de": "^2.1.0",
|
"@zxcvbn-ts/language-de": "^2.1.0",
|
||||||
"@zxcvbn-ts/language-en": "^2.1.0",
|
"@zxcvbn-ts/language-en": "^2.1.0",
|
||||||
"@zxcvbn-ts/language-fr": "^2.2.0",
|
"@zxcvbn-ts/language-fr": "^2.2.0",
|
||||||
|
"@zxcvbn-ts/language-it": "^2.1.0",
|
||||||
"axios": "^1.2.0",
|
"axios": "^1.2.0",
|
||||||
"chart.js": "^4.0.1",
|
"chart.js": "^4.0.1",
|
||||||
"chartjs-plugin-datalabels": "^2.1.0",
|
"chartjs-plugin-datalabels": "^2.1.0",
|
||||||
|
@ -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`.
|
* 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
|
* 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>> {
|
function loadLocaleMessages(): Record<string, LocaleMessages<VueMessageType>> {
|
||||||
const locales = require.context('./locales', true, /[A-Za-z0-9-_,\s]+\.ts$/i)
|
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',
|
de: 'do MMM yyyy',
|
||||||
en: 'MMM. do, yyyy',
|
en: 'MMM. do, yyyy',
|
||||||
fr: 'd MMM yyyy',
|
fr: 'd MMM yyyy',
|
||||||
|
// it: 'd MMM yyyy',
|
||||||
// nb: 'do MMM yyyy',
|
// nb: 'do MMM yyyy',
|
||||||
nl: 'd MMM yyyy',
|
nl: 'd MMM yyyy',
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ export const localeFromLanguage: Record<string, Locale> = {
|
|||||||
de: de,
|
de: de,
|
||||||
en: enUS,
|
en: enUS,
|
||||||
fr: fr,
|
fr: fr,
|
||||||
|
// it: it,
|
||||||
// nb: nb, // disabled for now
|
// nb: nb, // disabled for now
|
||||||
nl: nl,
|
nl: nl,
|
||||||
}
|
}
|
||||||
@ -16,6 +17,7 @@ export const languageLabels: Record<string, string> = {
|
|||||||
de: 'Deutsch',
|
de: 'Deutsch',
|
||||||
en: 'English',
|
en: 'English',
|
||||||
fr: 'Français',
|
fr: 'Français',
|
||||||
|
// it: 'Italiano',
|
||||||
// nb: 'Norsk bokmål', // disabled for now
|
// nb: 'Norsk bokmål', // disabled for now
|
||||||
nl: 'Nederlands',
|
nl: 'Nederlands',
|
||||||
}
|
}
|
||||||
|
@ -13,10 +13,14 @@ export const setZxcvbnOptions = async (language: string) => {
|
|||||||
const zxcvbnDePackage = await import(
|
const zxcvbnDePackage = await import(
|
||||||
/* webpackChunkName: "password" */ '@zxcvbn-ts/language-de'
|
/* webpackChunkName: "password" */ '@zxcvbn-ts/language-de'
|
||||||
)
|
)
|
||||||
|
const zxcvbnItPackage = await import(
|
||||||
|
/* webpackChunkName: "password" */ '@zxcvbn-ts/language-it'
|
||||||
|
)
|
||||||
const zxcvbnLangPackages: Record<string, typeof zxcvbnEnPackage> = {
|
const zxcvbnLangPackages: Record<string, typeof zxcvbnEnPackage> = {
|
||||||
de: zxcvbnDePackage,
|
de: zxcvbnDePackage,
|
||||||
en: zxcvbnEnPackage,
|
en: zxcvbnEnPackage,
|
||||||
fr: zxcvbnFrPackage,
|
fr: zxcvbnFrPackage,
|
||||||
|
it: zxcvbnItPackage,
|
||||||
// no package available for norwegian bokmal, fallback on english
|
// no package available for norwegian bokmal, fallback on english
|
||||||
nb: zxcvbnEnPackage,
|
nb: zxcvbnEnPackage,
|
||||||
// no package available for dutch (Nederlands), fallback on english
|
// no package available for dutch (Nederlands), fallback on english
|
||||||
|
@ -2160,6 +2160,11 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@zxcvbn-ts/language-fr/-/language-fr-2.2.0.tgz#0b7dd93ebba0044fbe733836bc7091b76d42afe1"
|
resolved "https://registry.yarnpkg.com/@zxcvbn-ts/language-fr/-/language-fr-2.2.0.tgz#0b7dd93ebba0044fbe733836bc7091b76d42afe1"
|
||||||
integrity sha512-KK+vIXm17mZyo7jLmV4T0fT6hh5NOBABdmkCBVpLyXq+rlZpdaz6HgoYLjqq2JbEU3KSZ+gv6qW+2N4dMk3Tlw==
|
integrity sha512-KK+vIXm17mZyo7jLmV4T0fT6hh5NOBABdmkCBVpLyXq+rlZpdaz6HgoYLjqq2JbEU3KSZ+gv6qW+2N4dMk3Tlw==
|
||||||
|
|
||||||
|
"@zxcvbn-ts/language-it@^2.1.0":
|
||||||
|
version "2.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@zxcvbn-ts/language-it/-/language-it-2.1.0.tgz#43dc6909eeaf64ec81a3efbfc761ae2b9253706b"
|
||||||
|
integrity sha512-ABYJp2HobzQ9B2PAbvNcEY7P7tFpa2TjFpINjkNdm/+zp+wSS5jrRP+siRH9dkXBI79jtwdliQ6uCdP9s4Sm8w==
|
||||||
|
|
||||||
abab@^2.0.5, abab@^2.0.6:
|
abab@^2.0.5, abab@^2.0.6:
|
||||||
version "2.0.6"
|
version "2.0.6"
|
||||||
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291"
|
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291"
|
||||||
|
Loading…
Reference in New Issue
Block a user