Added multi-lingua, english-spanish. Timer conditions and Linting bugfixes.
Deploy NPM app / Deploy NPM (push) Successful in 29s

This commit is contained in:
Antoni Nuñez Romeu
2026-03-27 16:23:06 +01:00
parent 5b663be89f
commit 935921f698
22 changed files with 1220 additions and 509 deletions
+23
View File
@@ -0,0 +1,23 @@
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import es from './locales/es.json';
import en from './locales/en.json';
const resources = {
es: { translation: es },
en: { translation: en },
};
i18n
.use(initReactI18next)
.init({
resources,
lng: 'es', // Default language
fallbackLng: 'es',
interpolation: {
escapeValue: false, // React already handles escaping
},
});
export default i18n;