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