Commit 839b3aaa authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

chore: 应用名称创建时跟随系统语言

See merge request !169
parents d8bfea84 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'
......
...@@ -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: '更新发布'
......
...@@ -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: '更新發布'
......
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: '',
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment