🌐 Integrated Spanish translation

This commit is contained in:
Mawoka
2022-11-30 16:57:42 +01:00
parent e025e6d69c
commit 62f056cfca
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -13,6 +13,7 @@ import tr from './locales/tr.json';
import id from './locales/id.json'; import id from './locales/id.json';
import ca from './locales/ca.json'; import ca from './locales/ca.json';
import it from './locales/it.json'; import it from './locales/it.json';
import es from './locales/es.json';
import LanguageDetector from 'i18next-browser-languagedetector'; import LanguageDetector from 'i18next-browser-languagedetector';
import type { i18n, Resource } from 'i18next'; import type { i18n, Resource } from 'i18next';
@@ -64,6 +65,7 @@ export class I18nService {
this.i18n.addResourceBundle('id', 'translation', id); this.i18n.addResourceBundle('id', 'translation', id);
this.i18n.addResourceBundle('it', 'translation', it); this.i18n.addResourceBundle('it', 'translation', it);
this.i18n.addResourceBundle('ca', 'translation', ca); this.i18n.addResourceBundle('ca', 'translation', ca);
this.i18n.addResourceBundle('es', 'translation', es);
} }
changeLanguage(language: string): void { changeLanguage(language: string): void {
+5
View File
@@ -87,6 +87,11 @@
code: 'it', code: 'it',
name: 'Italiano', name: 'Italiano',
flag: '🇮🇹' flag: '🇮🇹'
},
{
code: 'es',
name: 'Español',
flag: '🇪🇸'
} }
]; ];
const get_selected_language = (): string => { const get_selected_language = (): string => {