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