Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
78f52a78
authored
Nov 28, 2024
by
Archer
Committed by
GitHub
Nov 28, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: i18n (#3268)
* perf: i18n * update
parent
0d30b7ba
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
8 additions
and
7 deletions
+8
-7
packages/web/hooks/useI18n.ts
+3
-2
packages/web/i18n/zh-Hant/app.json
+0
-0
packages/web/i18n/zh-Hant/chat.json
+0
-0
packages/web/i18n/zh-Hant/common.json
+0
-0
packages/web/i18n/zh-Hant/dataset.json
+0
-0
packages/web/i18n/zh-Hant/file.json
+0
-0
packages/web/i18n/zh-Hant/login.json
+0
-0
packages/web/i18n/zh-Hant/publish.json
+0
-0
packages/web/i18n/zh-Hant/user.json
+0
-0
packages/web/i18n/zh-Hant/workflow.json
+0
-0
projects/app/next-i18next.config.js
+2
-2
projects/app/src/web/common/utils/i18n.ts
+3
-3
No files found.
packages/web/hooks/useI18n.ts
View file @
78f52a78
...
...
@@ -17,8 +17,9 @@ export const useI18nLng = () => {
zh
:
LangEnum
.
zh_CN
,
'zh-CN'
:
LangEnum
.
zh_CN
,
'zh-Hans'
:
LangEnum
.
zh_CN
,
'zh-HK'
:
LangEnum
.
zh_CN
,
'zh-TW'
:
LangEnum
.
zh_TW
,
'zh-HK'
:
LangEnum
.
zh_Hant
,
'zh-TW'
:
LangEnum
.
zh_Hant
,
'zh-Hant'
:
LangEnum
.
zh_Hant
,
en
:
LangEnum
.
en
,
'en-US'
:
LangEnum
.
en
};
...
...
packages/web/i18n/zh-
TW
/app.json
→
packages/web/i18n/zh-
Hant
/app.json
View file @
78f52a78
File moved
packages/web/i18n/zh-
TW
/chat.json
→
packages/web/i18n/zh-
Hant
/chat.json
View file @
78f52a78
File moved
packages/web/i18n/zh-
TW
/common.json
→
packages/web/i18n/zh-
Hant
/common.json
View file @
78f52a78
File moved
packages/web/i18n/zh-
TW
/dataset.json
→
packages/web/i18n/zh-
Hant
/dataset.json
View file @
78f52a78
File moved
packages/web/i18n/zh-
TW
/file.json
→
packages/web/i18n/zh-
Hant
/file.json
View file @
78f52a78
File moved
packages/web/i18n/zh-
TW
/login.json
→
packages/web/i18n/zh-
Hant
/login.json
View file @
78f52a78
File moved
packages/web/i18n/zh-
TW
/publish.json
→
packages/web/i18n/zh-
Hant
/publish.json
View file @
78f52a78
File moved
packages/web/i18n/zh-
TW
/user.json
→
packages/web/i18n/zh-
Hant
/user.json
View file @
78f52a78
File moved
packages/web/i18n/zh-
TW
/workflow.json
→
packages/web/i18n/zh-
Hant
/workflow.json
View file @
78f52a78
File moved
projects/app/next-i18next.config.js
View file @
78f52a78
...
...
@@ -5,8 +5,8 @@
module
.
exports
=
{
i18n
:
{
defaultLocale
:
'
zh-CN
'
,
locales
:
[
'en'
,
'zh-CN'
,
'zh-
TW
'
],
defaultLocale
:
'
en
'
,
locales
:
[
'en'
,
'zh-CN'
,
'zh-
Hant
'
],
localeDetection
:
false
},
localePath
:
...
...
projects/app/src/web/common/utils/i18n.ts
View file @
78f52a78
...
...
@@ -3,7 +3,7 @@ import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
export
enum
LangEnum
{
'zh_CN'
=
'zh-CN'
,
'zh_
TW'
=
'zh-TW
'
,
'zh_
Hant'
=
'zh-Hant
'
,
'en'
=
'en'
}
export
const
langMap
=
{
...
...
@@ -15,8 +15,8 @@ export const langMap = {
label
:
'简体中文'
,
avatar
:
'common/language/China'
},
[
LangEnum
.
zh_
TW
]:
{
label
:
'
中文(台湾)
'
,
[
LangEnum
.
zh_
Hant
]:
{
label
:
'
繁体中文
'
,
avatar
:
'common/language/China'
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment