🌐 Integrated Spanish translation
This commit is contained in:
@@ -13,6 +13,7 @@ import tr from './locales/tr.json';
|
||||
import id from './locales/id.json';
|
||||
import ca from './locales/ca.json';
|
||||
import it from './locales/it.json';
|
||||
import es from './locales/es.json';
|
||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
|
||||
import type { i18n, Resource } from 'i18next';
|
||||
@@ -64,6 +65,7 @@ export class I18nService {
|
||||
this.i18n.addResourceBundle('id', 'translation', id);
|
||||
this.i18n.addResourceBundle('it', 'translation', it);
|
||||
this.i18n.addResourceBundle('ca', 'translation', ca);
|
||||
this.i18n.addResourceBundle('es', 'translation', es);
|
||||
}
|
||||
|
||||
changeLanguage(language: string): void {
|
||||
|
||||
@@ -87,6 +87,11 @@
|
||||
code: 'it',
|
||||
name: 'Italiano',
|
||||
flag: '🇮🇹'
|
||||
},
|
||||
{
|
||||
code: 'es',
|
||||
name: 'Español',
|
||||
flag: '🇪🇸'
|
||||
}
|
||||
];
|
||||
const get_selected_language = (): string => {
|
||||
|
||||
Reference in New Issue
Block a user