feat: add Italian language translation support
- Add complete Italian translation file with all UI sections - Register Italian in LanguageAbbreviation enum and language maps - Configure Italian translation in i18n config - Add Italiano to language selector dropdown
This commit is contained in:
parent
bb6022477e
commit
3968671d6f
3 changed files with 1239 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ export const LanguageList = [
|
|||
'Portuguese BR',
|
||||
'German',
|
||||
'French',
|
||||
'Italian',
|
||||
];
|
||||
export const LanguageMap = {
|
||||
English: 'English',
|
||||
|
|
@ -64,6 +65,7 @@ export const LanguageMap = {
|
|||
'Portuguese BR': 'Português BR',
|
||||
German: 'German',
|
||||
French: 'Français',
|
||||
Italian: 'Italiano',
|
||||
};
|
||||
|
||||
export enum LanguageAbbreviation {
|
||||
|
|
@ -78,6 +80,7 @@ export enum LanguageAbbreviation {
|
|||
PtBr = 'pt-BR',
|
||||
De = 'de',
|
||||
Fr = 'fr',
|
||||
It = 'it',
|
||||
}
|
||||
|
||||
export const LanguageAbbreviationMap = {
|
||||
|
|
@ -92,6 +95,7 @@ export const LanguageAbbreviationMap = {
|
|||
[LanguageAbbreviation.PtBr]: 'Português BR',
|
||||
[LanguageAbbreviation.De]: 'Deutsch',
|
||||
[LanguageAbbreviation.Fr]: 'Français',
|
||||
[LanguageAbbreviation.It]: 'Italiano',
|
||||
};
|
||||
|
||||
export const LanguageTranslationMap = {
|
||||
|
|
@ -106,6 +110,7 @@ export const LanguageTranslationMap = {
|
|||
'Portuguese BR': 'pt-br',
|
||||
German: 'de',
|
||||
French: 'fr',
|
||||
Italian: 'it',
|
||||
};
|
||||
|
||||
export enum FileMimeType {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import translation_en from './en';
|
|||
import translation_es from './es';
|
||||
import translation_fr from './fr';
|
||||
import translation_id from './id';
|
||||
import translation_it from './it';
|
||||
import translation_ja from './ja';
|
||||
import translation_pt_br from './pt-br';
|
||||
import translation_ru from './ru';
|
||||
|
|
@ -28,6 +29,7 @@ const resources = {
|
|||
[LanguageAbbreviation.PtBr]: translation_pt_br,
|
||||
[LanguageAbbreviation.De]: translation_de,
|
||||
[LanguageAbbreviation.Fr]: translation_fr,
|
||||
[LanguageAbbreviation.It]: translation_it,
|
||||
};
|
||||
const enFlattened = flattenObject(translation_en);
|
||||
const viFlattened = flattenObject(translation_vi);
|
||||
|
|
@ -39,6 +41,7 @@ const pt_brFlattened = flattenObject(translation_pt_br);
|
|||
const zh_traditionalFlattened = flattenObject(translation_zh_traditional);
|
||||
const deFlattened = flattenObject(translation_de);
|
||||
const frFlattened = flattenObject(translation_fr);
|
||||
const itFlattened = flattenObject(translation_it);
|
||||
export const translationTable = createTranslationTable(
|
||||
[
|
||||
enFlattened,
|
||||
|
|
@ -51,6 +54,7 @@ export const translationTable = createTranslationTable(
|
|||
pt_brFlattened,
|
||||
deFlattened,
|
||||
frFlattened,
|
||||
itFlattened,
|
||||
],
|
||||
[
|
||||
'English',
|
||||
|
|
@ -63,6 +67,7 @@ export const translationTable = createTranslationTable(
|
|||
'pt-BR',
|
||||
'Deutsch',
|
||||
'French',
|
||||
'Italian',
|
||||
],
|
||||
);
|
||||
i18n
|
||||
|
|
|
|||
1229
web/src/locales/it.ts
Normal file
1229
web/src/locales/it.ts
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue