Add supplier and imporve inventory frontend

This commit is contained in:
Urtzi Alfaro
2025-09-18 23:32:53 +02:00
parent ae77a0e1c5
commit d61056df33
40 changed files with 2022 additions and 629 deletions

View File

@@ -0,0 +1,38 @@
// frontend/src/i18n/index.ts
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import { resources, defaultLanguage } from '../locales';
i18n
.use(initReactI18next)
.init({
resources,
lng: defaultLanguage,
fallbackLng: defaultLanguage,
interpolation: {
escapeValue: false, // React already does escaping
},
// Enable debug in development
debug: process.env.NODE_ENV === 'development',
// Default namespace
defaultNS: 'common',
// Fallback namespace
fallbackNS: 'common',
// Key separator for nested keys
keySeparator: '.',
// Namespace separator
nsSeparator: ':',
// React options
react: {
useSuspense: false,
},
});
export default i18n;