mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-10-03 09:05:17 -07:00
Add Italian translation (#904)
* Add Italian translation * Add Italian language support to i18n
This commit is contained in:
committed by
Jamie Pine
parent
89d489f711
commit
cf173ae837
@@ -7,6 +7,7 @@ import ptBR from './locales/pt-BR/translation.json';
|
|||||||
import zhCN from './locales/zh-CN/translation.json';
|
import zhCN from './locales/zh-CN/translation.json';
|
||||||
import zhTW from './locales/zh-TW/translation.json';
|
import zhTW from './locales/zh-TW/translation.json';
|
||||||
import fr from './locales/fr/translation.json';
|
import fr from './locales/fr/translation.json';
|
||||||
|
import it from './locales/it/translation.json';
|
||||||
|
|
||||||
export const SUPPORTED_LANGUAGES = [
|
export const SUPPORTED_LANGUAGES = [
|
||||||
{ code: 'en', label: 'English' },
|
{ code: 'en', label: 'English' },
|
||||||
@@ -15,6 +16,7 @@ export const SUPPORTED_LANGUAGES = [
|
|||||||
{ code: 'zh-CN', label: '简体中文' },
|
{ code: 'zh-CN', label: '简体中文' },
|
||||||
{ code: 'zh-TW', label: '繁體中文' },
|
{ code: 'zh-TW', label: '繁體中文' },
|
||||||
{ code: 'fr', label: 'Français' },
|
{ code: 'fr', label: 'Français' },
|
||||||
|
{ code: 'it', label: 'Italiano' },
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
export type LanguageCode = (typeof SUPPORTED_LANGUAGES)[number]['code'];
|
export type LanguageCode = (typeof SUPPORTED_LANGUAGES)[number]['code'];
|
||||||
@@ -30,6 +32,7 @@ i18n
|
|||||||
'zh-CN': { translation: zhCN },
|
'zh-CN': { translation: zhCN },
|
||||||
'zh-TW': { translation: zhTW },
|
'zh-TW': { translation: zhTW },
|
||||||
fr: { translation: fr },
|
fr: { translation: fr },
|
||||||
|
it: { translation: it },
|
||||||
},
|
},
|
||||||
fallbackLng: 'en',
|
fallbackLng: 'en',
|
||||||
supportedLngs: SUPPORTED_LANGUAGES.map((l) => l.code),
|
supportedLngs: SUPPORTED_LANGUAGES.map((l) => l.code),
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user