diff --git a/fittrackee_client/src/locales/nl/about.json b/fittrackee_client/src/locales/nl/about.json new file mode 100644 index 00000000..7a73a41b --- /dev/null +++ b/fittrackee_client/src/locales/nl/about.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/fittrackee_client/src/locales/nl/administration.json b/fittrackee_client/src/locales/nl/administration.json new file mode 100644 index 00000000..2c63c085 --- /dev/null +++ b/fittrackee_client/src/locales/nl/administration.json @@ -0,0 +1,2 @@ +{ +} diff --git a/fittrackee_client/src/locales/nl/api.json b/fittrackee_client/src/locales/nl/api.json new file mode 100644 index 00000000..7a73a41b --- /dev/null +++ b/fittrackee_client/src/locales/nl/api.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/fittrackee_client/src/locales/nl/buttons.json b/fittrackee_client/src/locales/nl/buttons.json new file mode 100644 index 00000000..7a73a41b --- /dev/null +++ b/fittrackee_client/src/locales/nl/buttons.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/fittrackee_client/src/locales/nl/common.json b/fittrackee_client/src/locales/nl/common.json new file mode 100644 index 00000000..7a73a41b --- /dev/null +++ b/fittrackee_client/src/locales/nl/common.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/fittrackee_client/src/locales/nl/dashboard.json b/fittrackee_client/src/locales/nl/dashboard.json new file mode 100644 index 00000000..2c63c085 --- /dev/null +++ b/fittrackee_client/src/locales/nl/dashboard.json @@ -0,0 +1,2 @@ +{ +} diff --git a/fittrackee_client/src/locales/nl/error.json b/fittrackee_client/src/locales/nl/error.json new file mode 100644 index 00000000..7a73a41b --- /dev/null +++ b/fittrackee_client/src/locales/nl/error.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/fittrackee_client/src/locales/nl/nl.ts b/fittrackee_client/src/locales/nl/nl.ts new file mode 100644 index 00000000..3b66703f --- /dev/null +++ b/fittrackee_client/src/locales/nl/nl.ts @@ -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, +} diff --git a/fittrackee_client/src/locales/nl/oauth2.json b/fittrackee_client/src/locales/nl/oauth2.json new file mode 100644 index 00000000..7a73a41b --- /dev/null +++ b/fittrackee_client/src/locales/nl/oauth2.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/fittrackee_client/src/locales/nl/sports.json b/fittrackee_client/src/locales/nl/sports.json new file mode 100644 index 00000000..7a73a41b --- /dev/null +++ b/fittrackee_client/src/locales/nl/sports.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/fittrackee_client/src/locales/nl/statistics.json b/fittrackee_client/src/locales/nl/statistics.json new file mode 100644 index 00000000..2c63c085 --- /dev/null +++ b/fittrackee_client/src/locales/nl/statistics.json @@ -0,0 +1,2 @@ +{ +} diff --git a/fittrackee_client/src/locales/nl/user.json b/fittrackee_client/src/locales/nl/user.json new file mode 100644 index 00000000..2c63c085 --- /dev/null +++ b/fittrackee_client/src/locales/nl/user.json @@ -0,0 +1,2 @@ +{ +} diff --git a/fittrackee_client/src/locales/nl/workouts.json b/fittrackee_client/src/locales/nl/workouts.json new file mode 100644 index 00000000..2c63c085 --- /dev/null +++ b/fittrackee_client/src/locales/nl/workouts.json @@ -0,0 +1,2 @@ +{ +} diff --git a/fittrackee_client/src/utils/dates.ts b/fittrackee_client/src/utils/dates.ts index 4bffe43d..30435bfa 100644 --- a/fittrackee_client/src/utils/dates.ts +++ b/fittrackee_client/src/utils/dates.ts @@ -98,6 +98,7 @@ const dateStringFormats: Record = { en: 'MMM. do, yyyy', fr: 'd MMM yyyy', // nb: 'do MMM yyyy', + // nl: 'd MMM yyyy', } export const getDateFormat = (dateFormat: string, language: string): string => { diff --git a/fittrackee_client/src/utils/locales.ts b/fittrackee_client/src/utils/locales.ts index 237c2887..44d7f814 100644 --- a/fittrackee_client/src/utils/locales.ts +++ b/fittrackee_client/src/utils/locales.ts @@ -9,6 +9,7 @@ export const localeFromLanguage: Record = { en: enUS, fr: fr, // nb: nb, // disabled for now + // nl: nl, // disabled for now } export const languageLabels: Record = { @@ -16,6 +17,7 @@ export const languageLabels: Record = { en: 'English', fr: 'Français', // nb: 'Norsk bokmål', // disabled for now + // nl: 'Nederlands', // disabled for now } const { availableLocales } = createI18n.global diff --git a/fittrackee_client/src/utils/password.ts b/fittrackee_client/src/utils/password.ts index e5c29da2..1b5dde1f 100644 --- a/fittrackee_client/src/utils/password.ts +++ b/fittrackee_client/src/utils/password.ts @@ -19,6 +19,8 @@ export const setZxcvbnOptions = async (language: string) => { fr: zxcvbnFrPackage, // no package available for norwegian bokmal, fallback on english nb: zxcvbnEnPackage, + // no package available for dutch (Nederlands), fallback on english + nl: zxcvbnEnPackage, } const zxcvbnPackage = zxcvbnLangPackages[language] const options = {