Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
cdf96593
Commit
cdf96593
authored
Mar 05, 2025
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 应用名称创建时跟随系统语言
parent
d97ecd47
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
1 deletion
+8
-1
en.yaml
src/locales/langs/en.yaml
+1
-0
zh-cn.yaml
src/locales/langs/zh-cn.yaml
+1
-0
zh-hk.yaml
src/locales/langs/zh-hk.yaml
+1
-0
personal-app-config.ts
src/store/modules/personal-app-config.ts
+4
-1
locales.d.ts
types/locales.d.ts
+1
-0
No files found.
src/locales/langs/en.yaml
View file @
cdf96593
...
@@ -256,6 +256,7 @@ personal_space_module:
...
@@ -256,6 +256,7 @@ personal_space_module:
application_empty
:
'
No
application
created'
application_empty
:
'
No
application
created'
agent_setting_module
:
agent_setting_module
:
my_agent
:
'
My
Agent'
modified
:
'
Have
been
changed'
modified
:
'
Have
been
changed'
auto_save_in
:
'
Autosave
to'
auto_save_in
:
'
Autosave
to'
update_publish_btn_text
:
'
Update
release'
update_publish_btn_text
:
'
Update
release'
...
...
src/locales/langs/zh-cn.yaml
View file @
cdf96593
...
@@ -254,6 +254,7 @@ personal_space_module:
...
@@ -254,6 +254,7 @@ personal_space_module:
application_empty
:
'
未创建应用'
application_empty
:
'
未创建应用'
agent_setting_module
:
agent_setting_module
:
my_agent
:
'
我的Agent应用'
modified
:
'
已变更'
modified
:
'
已变更'
auto_save_in
:
'
自动保存于'
auto_save_in
:
'
自动保存于'
update_publish_btn_text
:
'
更新发布'
update_publish_btn_text
:
'
更新发布'
...
...
src/locales/langs/zh-hk.yaml
View file @
cdf96593
...
@@ -254,6 +254,7 @@ personal_space_module:
...
@@ -254,6 +254,7 @@ personal_space_module:
application_empty
:
'
未創建應用'
application_empty
:
'
未創建應用'
agent_setting_module
:
agent_setting_module
:
my_agent
:
'
我的Agent應用'
modified
:
'
已變更'
modified
:
'
已變更'
auto_save_in
:
'
自動保存於'
auto_save_in
:
'
自動保存於'
update_publish_btn_text
:
'
更新發布'
update_publish_btn_text
:
'
更新發布'
...
...
src/store/modules/personal-app-config.ts
View file @
cdf96593
import
{
defineStore
}
from
'pinia'
import
{
defineStore
}
from
'pinia'
import
{
PersonalAppConfigState
}
from
'../types/personal-app-config'
import
{
PersonalAppConfigState
}
from
'../types/personal-app-config'
import
i18n
from
'@/locales'
const
{
t
}
=
i18n
.
global
export
function
defaultPersonalAppConfigState
():
PersonalAppConfigState
{
export
function
defaultPersonalAppConfigState
():
PersonalAppConfigState
{
return
{
return
{
baseInfo
:
{
baseInfo
:
{
agentId
:
''
,
agentId
:
''
,
agentTitle
:
'我的Agent应用'
,
agentTitle
:
t
(
'personal_space_module.agent_module.agent_setting_module.my_agent'
)
,
agentAvatar
:
'https://gsst-poe-sit.gz.bcebos.com/data/20240911/1726041369632.webp'
,
agentAvatar
:
'https://gsst-poe-sit.gz.bcebos.com/data/20240911/1726041369632.webp'
,
agentDesc
:
''
,
agentDesc
:
''
,
agentSystem
:
''
,
agentSystem
:
''
,
...
...
types/locales.d.ts
View file @
cdf96593
...
@@ -264,6 +264,7 @@ declare namespace I18n {
...
@@ -264,6 +264,7 @@ declare namespace I18n {
}
}
agent_setting_module
:
{
agent_setting_module
:
{
my_agent
:
string
modified
:
string
modified
:
string
auto_save_in
:
string
auto_save_in
:
string
update_publish_btn_text
:
string
update_publish_btn_text
:
string
...
...
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