Client - init Dutch (nl) translation files
This commit is contained in:
parent
060741ed3b
commit
6f1d0cca96
2
fittrackee_client/src/locales/nl/about.json
Normal file
2
fittrackee_client/src/locales/nl/about.json
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
2
fittrackee_client/src/locales/nl/administration.json
Normal file
2
fittrackee_client/src/locales/nl/administration.json
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
2
fittrackee_client/src/locales/nl/api.json
Normal file
2
fittrackee_client/src/locales/nl/api.json
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
2
fittrackee_client/src/locales/nl/buttons.json
Normal file
2
fittrackee_client/src/locales/nl/buttons.json
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
2
fittrackee_client/src/locales/nl/common.json
Normal file
2
fittrackee_client/src/locales/nl/common.json
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
2
fittrackee_client/src/locales/nl/dashboard.json
Normal file
2
fittrackee_client/src/locales/nl/dashboard.json
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
2
fittrackee_client/src/locales/nl/error.json
Normal file
2
fittrackee_client/src/locales/nl/error.json
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
27
fittrackee_client/src/locales/nl/nl.ts
Normal file
27
fittrackee_client/src/locales/nl/nl.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/nl/oauth2.json
Normal file
2
fittrackee_client/src/locales/nl/oauth2.json
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
2
fittrackee_client/src/locales/nl/sports.json
Normal file
2
fittrackee_client/src/locales/nl/sports.json
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
2
fittrackee_client/src/locales/nl/statistics.json
Normal file
2
fittrackee_client/src/locales/nl/statistics.json
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
2
fittrackee_client/src/locales/nl/user.json
Normal file
2
fittrackee_client/src/locales/nl/user.json
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
2
fittrackee_client/src/locales/nl/workouts.json
Normal file
2
fittrackee_client/src/locales/nl/workouts.json
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{
|
||||||
|
}
|
@ -98,6 +98,7 @@ const dateStringFormats: Record<string, string> = {
|
|||||||
en: 'MMM. do, yyyy',
|
en: 'MMM. do, yyyy',
|
||||||
fr: 'd MMM yyyy',
|
fr: 'd MMM yyyy',
|
||||||
// nb: 'do MMM yyyy',
|
// nb: 'do MMM yyyy',
|
||||||
|
// nl: 'd MMM yyyy',
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getDateFormat = (dateFormat: string, language: string): string => {
|
export const getDateFormat = (dateFormat: string, language: string): string => {
|
||||||
|
@ -9,6 +9,7 @@ export const localeFromLanguage: Record<string, Locale> = {
|
|||||||
en: enUS,
|
en: enUS,
|
||||||
fr: fr,
|
fr: fr,
|
||||||
// nb: nb, // disabled for now
|
// nb: nb, // disabled for now
|
||||||
|
// nl: nl, // disabled for now
|
||||||
}
|
}
|
||||||
|
|
||||||
export const languageLabels: Record<string, string> = {
|
export const languageLabels: Record<string, string> = {
|
||||||
@ -16,6 +17,7 @@ export const languageLabels: Record<string, string> = {
|
|||||||
en: 'English',
|
en: 'English',
|
||||||
fr: 'Français',
|
fr: 'Français',
|
||||||
// nb: 'Norsk bokmål', // disabled for now
|
// nb: 'Norsk bokmål', // disabled for now
|
||||||
|
// nl: 'Nederlands', // disabled for now
|
||||||
}
|
}
|
||||||
|
|
||||||
const { availableLocales } = createI18n.global
|
const { availableLocales } = createI18n.global
|
||||||
|
@ -19,6 +19,8 @@ export const setZxcvbnOptions = async (language: string) => {
|
|||||||
fr: zxcvbnFrPackage,
|
fr: zxcvbnFrPackage,
|
||||||
// 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
|
||||||
|
nl: zxcvbnEnPackage,
|
||||||
}
|
}
|
||||||
const zxcvbnPackage = zxcvbnLangPackages[language]
|
const zxcvbnPackage = zxcvbnLangPackages[language]
|
||||||
const options = {
|
const options = {
|
||||||
|
Loading…
Reference in New Issue
Block a user