Enable more translations in UI
This commit is contained in:
@@ -19,6 +19,9 @@ import uk from './locales/uk.json';
|
|||||||
import nl from './locales/nl.json';
|
import nl from './locales/nl.json';
|
||||||
import hu from './locales/hu.json';
|
import hu from './locales/hu.json';
|
||||||
import vi from './locales/vi.json';
|
import vi from './locales/vi.json';
|
||||||
|
import ta from './locales/ta.json';
|
||||||
|
import pt_BR from './locales/pt_BR.json';
|
||||||
|
import ja from './locales/ja.json';
|
||||||
// import uz from './locales/uz.json'
|
// import uz from './locales/uz.json'
|
||||||
// import zh_Hans from './locales/zh_Hans.json';
|
// import zh_Hans from './locales/zh_Hans.json';
|
||||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||||
@@ -82,6 +85,10 @@ export class I18nService {
|
|||||||
this.i18n.addResourceBundle('nl', 'translation', nl);
|
this.i18n.addResourceBundle('nl', 'translation', nl);
|
||||||
this.i18n.addResourceBundle('hu', 'translation', hu);
|
this.i18n.addResourceBundle('hu', 'translation', hu);
|
||||||
this.i18n.addResourceBundle('vi', 'translation', vi);
|
this.i18n.addResourceBundle('vi', 'translation', vi);
|
||||||
|
this.i18n.addResourceBundle('ta', 'translation', ta);
|
||||||
|
this.i18n.addResourceBundle('pt_BR', 'translation', pt_BR);
|
||||||
|
this.i18n.addResourceBundle('ja', 'translation', ja);
|
||||||
|
|
||||||
// this.i18n.addResourceBundle('uz', 'translation', uz);
|
// this.i18n.addResourceBundle('uz', 'translation', uz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,8 @@ SPDX-License-Identifier: MPL-2.0
|
|||||||
}>;
|
}>;
|
||||||
}
|
}
|
||||||
|
|
||||||
let { languages = [
|
let {
|
||||||
|
languages = [
|
||||||
{
|
{
|
||||||
code: 'de',
|
code: 'de',
|
||||||
name: 'Deutsch',
|
name: 'Deutsch',
|
||||||
@@ -142,8 +143,24 @@ SPDX-License-Identifier: MPL-2.0
|
|||||||
code: 'vi',
|
code: 'vi',
|
||||||
name: 'tiếng Việt',
|
name: 'tiếng Việt',
|
||||||
flag: '🇻🇳'
|
flag: '🇻🇳'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
code: 'ta',
|
||||||
|
flag: '🇮🇳',
|
||||||
|
name: 'Tamil'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
code: 'pt_BR',
|
||||||
|
flag: '🇧🇷',
|
||||||
|
name: 'Brazil'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
code: 'ja',
|
||||||
|
flag: '🇯🇵',
|
||||||
|
name: 'Japan'
|
||||||
}
|
}
|
||||||
] }: Props = $props();
|
]
|
||||||
|
}: Props = $props();
|
||||||
const get_selected_language = (): string => {
|
const get_selected_language = (): string => {
|
||||||
return localStorage.getItem('language');
|
return localStorage.getItem('language');
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user