mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-17 19:22:55 +08:00
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
This commit is contained in:
@ -5,20 +5,20 @@ import translation_en from './en.json';
|
||||
import translation_zh from './zh.json';
|
||||
|
||||
const resources = {
|
||||
en: {
|
||||
translation: translation_en,
|
||||
},
|
||||
zh: {
|
||||
translation: translation_zh,
|
||||
},
|
||||
en: {
|
||||
translation: translation_en,
|
||||
},
|
||||
zh: {
|
||||
translation: translation_zh,
|
||||
},
|
||||
};
|
||||
|
||||
i18n.use(initReactI18next).init({
|
||||
resources,
|
||||
lng: 'zh',
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
},
|
||||
resources,
|
||||
lng: 'en',
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
},
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
|
||||
@ -1,20 +1,21 @@
|
||||
{
|
||||
"header": {
|
||||
"register": "Register",
|
||||
"signin": "Sign In",
|
||||
"home": "Home",
|
||||
"setting": "用户设置",
|
||||
"logout": "登出"
|
||||
},
|
||||
"footer": {
|
||||
"detail": "All rights reserved @ React"
|
||||
},
|
||||
"layout": {
|
||||
"file": "file",
|
||||
"knowledge": "knowledge",
|
||||
"chat": "chat"
|
||||
},
|
||||
"setting": {
|
||||
"btn": "en"
|
||||
}
|
||||
}
|
||||
"login": { "login": "Sign in" },
|
||||
"header": {
|
||||
"register": "Register",
|
||||
"signin": "Sign in",
|
||||
"home": "Home",
|
||||
"setting": "用户设置",
|
||||
"logout": "登出"
|
||||
},
|
||||
"footer": {
|
||||
"detail": "All rights reserved @ React"
|
||||
},
|
||||
"layout": {
|
||||
"file": "file",
|
||||
"knowledge": "knowledge",
|
||||
"chat": "chat"
|
||||
},
|
||||
"setting": {
|
||||
"btn": "en"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,20 +1,21 @@
|
||||
{
|
||||
"header": {
|
||||
"register": "注册",
|
||||
"signin": "登陆",
|
||||
"home": "首页",
|
||||
"setting": "user setting",
|
||||
"logout": "logout"
|
||||
},
|
||||
"footer": {
|
||||
"detail": "版权所有 @ React"
|
||||
},
|
||||
"layout": {
|
||||
"file": "文件",
|
||||
"knowledge": "知识库",
|
||||
"chat": "聊天"
|
||||
},
|
||||
"setting": {
|
||||
"btn": "中文"
|
||||
}
|
||||
}
|
||||
"login": { "login": "登录" },
|
||||
"header": {
|
||||
"register": "注册",
|
||||
"signin": "登陆",
|
||||
"home": "首页",
|
||||
"setting": "user setting",
|
||||
"logout": "logout"
|
||||
},
|
||||
"footer": {
|
||||
"detail": "版权所有 @ React"
|
||||
},
|
||||
"layout": {
|
||||
"file": "文件",
|
||||
"knowledge": "知识库",
|
||||
"chat": "聊天"
|
||||
},
|
||||
"setting": {
|
||||
"btn": "中文"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user