Files
ragflow_python/web/src/locales/config.ts
balibabu e3c24e653e feat: enlarge the size of the next button for uploading files and add locale config to global.ts (#195)
feat: enlarge the size of the next button for uploading files
feat: add locale config to global.ts
2024-04-02 10:31:46 +08:00

25 lines
434 B
TypeScript

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,
},
};
i18n.use(initReactI18next).init({
resources,
lng: 'en',
interpolation: {
escapeValue: false,
},
});
export default i18n;