Files
ragflow_python/web/src/locales/config.ts

25 lines
434 B
TypeScript
Raw Normal View History

2024-01-17 09:37:01 +08:00
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import translation_en from './en.json';
import translation_zh from './zh.json';
const resources = {
en: {
translation: translation_en,
},
zh: {
translation: translation_zh,
},
2024-01-17 09:37:01 +08:00
};
i18n.use(initReactI18next).init({
resources,
lng: 'en',
interpolation: {
escapeValue: false,
},
2024-01-17 09:37:01 +08:00
});
export default i18n;