Client - init Norwegian Bokmål (nb) translation files
This commit is contained in:
parent
1a6d259c2d
commit
34a5c165cb
2
fittrackee_client/src/locales/nb/about.json
Normal file
2
fittrackee_client/src/locales/nb/about.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/nb/administration.json
Normal file
2
fittrackee_client/src/locales/nb/administration.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/nb/api.json
Normal file
2
fittrackee_client/src/locales/nb/api.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/nb/buttons.json
Normal file
2
fittrackee_client/src/locales/nb/buttons.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/nb/common.json
Normal file
2
fittrackee_client/src/locales/nb/common.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/nb/dashboard.json
Normal file
2
fittrackee_client/src/locales/nb/dashboard.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/nb/error.json
Normal file
2
fittrackee_client/src/locales/nb/error.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
27
fittrackee_client/src/locales/nb/nb.ts
Normal file
27
fittrackee_client/src/locales/nb/nb.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/nb/oauth2.json
Normal file
2
fittrackee_client/src/locales/nb/oauth2.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/nb/sports.json
Normal file
2
fittrackee_client/src/locales/nb/sports.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/nb/statistics.json
Normal file
2
fittrackee_client/src/locales/nb/statistics.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/nb/user.json
Normal file
2
fittrackee_client/src/locales/nb/user.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
2
fittrackee_client/src/locales/nb/workouts.json
Normal file
2
fittrackee_client/src/locales/nb/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',
|
||||
// nb: 'do MMM yyyy',
|
||||
}
|
||||
|
||||
export const getDateFormat = (dateFormat: string, language: string): string => {
|
||||
|
@ -8,12 +8,14 @@ export const localeFromLanguage: Record<string, Locale> = {
|
||||
de: de,
|
||||
en: enUS,
|
||||
fr: fr,
|
||||
// nb: nb, // disabled for now
|
||||
}
|
||||
|
||||
export const languageLabels: Record<string, string> = {
|
||||
de: 'Deutsch',
|
||||
en: 'English',
|
||||
fr: 'Français',
|
||||
// nb: 'Norsk bokmål', // disabled for now
|
||||
}
|
||||
|
||||
const { availableLocales } = createI18n.global
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user