fix(web): optimize i18n name

This commit is contained in:
lcxadml
2024-02-21 10:39:32 +08:00
committed by GitHub
parent 32e1554282
commit 02abcb7218
32 changed files with 72 additions and 52 deletions

View File

@@ -207,7 +207,18 @@ const en = {
available_resources: ' Available Resources',
edit_new_applications: 'Edit new applications',
collect: 'Collect',
create: '创建',
collected: 'Collected',
create: 'Create',
Agents: 'Agents',
edit_application: 'edit application',
add_application: 'add application',
app_name: 'App Name',
LLM_strategy: 'LLM Strategy',
LLM_strategy_value: 'LLM Strategy Value',
resource: 'Resource',
operators: 'Operators',
Chinese: 'Chinese',
English: 'English',
} as const;
export type I18nKeys = keyof typeof en;
@@ -413,6 +424,7 @@ const zh: Resources['translation'] = {
add_resource: '添加资源',
team_modal: '工作模式',
App: '应用程序',
resource: '资源',
resource_name: '资源名',
resource_type: '资源类型',
resource_value: '参数',
@@ -421,7 +433,17 @@ const zh: Resources['translation'] = {
available_resources: '可用资源',
edit_new_applications: '编辑新的应用',
collect: '收藏',
collected: '已收藏',
create: '创建',
Agents: '智能体',
edit_application: '编辑应用',
add_application: '添加应用',
app_name: '应用名称',
LLM_strategy: '模型策略',
LLM_strategy_value: '模型策略参数',
operators: '算子',
Chinese: '中文',
English: '英文',
} as const;
i18n.use(initReactI18next).init({