API & Client - enable nl translations
This commit is contained in:
parent
3af6b3af37
commit
4e9f80af62
@ -61,7 +61,7 @@ class BaseConfig:
|
||||
'fr',
|
||||
'de',
|
||||
# 'nb', # disabled for now
|
||||
# 'nl', # disabled for now
|
||||
'nl',
|
||||
]
|
||||
OAUTH2_TOKEN_EXPIRES_IN = {
|
||||
'authorization_code': 864000, # 10 days
|
||||
|
@ -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`.
|
||||
* See: https://github.com/intlify/vue-i18n-loader#rocket-i18n-resource-pre-compilation
|
||||
*/
|
||||
const disabledLanguages = ['nb', 'nl'] // to update after translations release
|
||||
const disabledLanguages = ['nb'] // to update after translations release
|
||||
|
||||
function loadLocaleMessages(): Record<string, LocaleMessages<VueMessageType>> {
|
||||
const locales = require.context('./locales', true, /[A-Za-z0-9-_,\s]+\.ts$/i)
|
||||
|
@ -98,7 +98,7 @@ const dateStringFormats: Record<string, string> = {
|
||||
en: 'MMM. do, yyyy',
|
||||
fr: 'd MMM yyyy',
|
||||
// nb: 'do MMM yyyy',
|
||||
// nl: 'd MMM yyyy',
|
||||
nl: 'd MMM yyyy',
|
||||
}
|
||||
|
||||
export const getDateFormat = (dateFormat: string, language: string): string => {
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* eslint-disable import/no-duplicates */
|
||||
import { Locale } from 'date-fns'
|
||||
import { de, enUS, fr } from 'date-fns/locale'
|
||||
import { de, enUS, fr, nl } from 'date-fns/locale'
|
||||
|
||||
import createI18n from '@/i18n'
|
||||
|
||||
@ -9,7 +9,7 @@ export const localeFromLanguage: Record<string, Locale> = {
|
||||
en: enUS,
|
||||
fr: fr,
|
||||
// nb: nb, // disabled for now
|
||||
// nl: nl, // disabled for now
|
||||
nl: nl,
|
||||
}
|
||||
|
||||
export const languageLabels: Record<string, string> = {
|
||||
@ -17,7 +17,7 @@ export const languageLabels: Record<string, string> = {
|
||||
en: 'English',
|
||||
fr: 'Français',
|
||||
// nb: 'Norsk bokmål', // disabled for now
|
||||
// nl: 'Nederlands', // disabled for now
|
||||
nl: 'Nederlands',
|
||||
}
|
||||
|
||||
const { availableLocales } = createI18n.global
|
||||
|
Loading…
Reference in New Issue
Block a user