Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-ai-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8d21ef19
authored
May 14, 2025
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
写死中文
1 parent
e2d1d9c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
i18n/i18next-config.ts
i18n/i18next-config.ts
View file @
8d21ef1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming@didihu.com.cn yangming@didihu.com.cn
* @Author: yangming@didihu.com.cn yangming@didihu.com.cn
* @Date: 2025-04-22 09:29:21
* @Date: 2025-04-22 09:29:21
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-05-1
3 11:22:21
* @LastEditTime: 2025-05-1
4 14:55:15
* @FilePath: \glsk-ai-assistant\i18n\i18next-config.ts
* @FilePath: \glsk-ai-assistant\i18n\i18next-config.ts
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -58,13 +58,13 @@ const loadLangResources = (lang: string) => ({
...
@@ -58,13 +58,13 @@ const loadLangResources = (lang: string) => ({
type
Resource
=
Record
<
string
,
ReturnType
<
typeof
loadLangResources
>>
type
Resource
=
Record
<
string
,
ReturnType
<
typeof
loadLangResources
>>
// Automatically generate the resources object
// Automatically generate the resources object
export
const
resources
=
LanguagesSupported
.
reduce
<
Resource
>
((
acc
,
lang
)
=>
{
export
const
resources
=
LanguagesSupported
.
reduce
<
Resource
>
((
acc
,
lang
)
=>
{
acc
[
lang
]
=
loadLangResources
(
lang
)
acc
[
lang
]
=
loadLangResources
(
'zh-Hans'
)
return
acc
return
acc
},
{})
},
{})
i18n
.
use
(
initReactI18next
).
init
({
i18n
.
use
(
initReactI18next
).
init
({
lng
:
undefined
,
lng
:
undefined
,
fallbackLng
:
'
en-US
'
,
fallbackLng
:
'
zh-Hans
'
,
resources
,
resources
,
})
})
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment