chore: languages settings

This commit is contained in:
jialin
2024-06-24 14:00:06 +08:00
parent de96c3d81d
commit 64683fdeb6
32 changed files with 417 additions and 156 deletions
+5 -1
View File
@@ -1,9 +1,13 @@
import common from './en-US/common';
import menu from './en-US/menu';
import models from './en-US/models';
import playground from './en-US/playground';
import resources from './en-US/resources';
export default {
...common,
...menu,
...models
...models,
...playground,
...resources
};
+5
View File
@@ -0,0 +1,5 @@
export default {
'apikeys.title': 'API Keys',
'apikeys.button.create': 'New API Key',
'apikeys.form.expiretime': 'Expiration'
};
+7 -2
View File
@@ -41,6 +41,7 @@ export default {
'common.button.edit': 'Edit',
'common.button.authorize': 'Role Authorization',
'common.button.confirm': 'Confirm',
'common.button.viewlog': 'View Logs',
'common.table.operation': 'Operation',
'common.table.createTime': 'Created',
'common.table.updateTime': 'Updated',
@@ -173,6 +174,10 @@ export default {
'common.nodata.created': 'No {type} has been created yet',
'common.nodata.added': 'No {type} has been added yet',
'common.status.edited': 'Edited',
'common.table.user': '用户',
'common.settings.instructions': 'Instructions'
'common.table.user': 'User',
'common.settings.instructions': 'Instructions',
'common.settings.language': 'Language',
'common.delete.confirm':
'Are you sure you want to delete the selected {type}?',
'common.filter.name': 'Filter by name'
};
+10 -1
View File
@@ -1 +1,10 @@
export default {};
export default {
'menu.dashboard': 'Dashboard',
'menu.playground': 'Playground',
'menu.models': 'Models',
'menu.resources': 'Resources',
'menu.apikeys': 'API Keys',
'menu.users': 'Users',
'menu.profile': 'Profile',
'menu.login': 'Login'
};
+12 -1
View File
@@ -1,3 +1,14 @@
export default {
'models.button.deploy': 'Deploy Model'
'models.button.deploy': 'Deploy Model',
'models.title': 'Models',
'models.table.models': 'models',
'models.table.name': 'Model Name',
'models.form.source': 'Source',
'models.form.repoid': 'Repo ID',
'models.form.repoid.desc': 'Only .gguf format is supported',
'models.form.filename': 'File Name',
'models.form.replicas': 'Replicas',
'models.form.s3address': 'S3 Address',
'models.openinplayground': 'Open in Playground',
'models.instances': 'instances'
};
+17
View File
@@ -0,0 +1,17 @@
export default {
'playground.system.tips': 'Enter system message here...',
'playground.title': 'Playground',
'playground.system': 'System',
'playground.user': 'User',
'playground.assistant': 'Assistant',
'playground.newMessage': 'New Message',
'playground.viewcode': 'View Code',
'playground.model': 'Model',
'playground.parameters': 'Parameters',
'playground.viewcode.info':
'You can use the following code to start integrating your current prompt and settings into your application.',
'playground.completion': 'Completion',
'playground.prompt': 'Prompt',
'playground.tokenusage': 'Token Usage',
'models.openinplayground': 'Open in Playground'
};
+11
View File
@@ -0,0 +1,11 @@
export default {
'resources.title': 'Resources',
'resources.nodes': 'Nodes',
'resources.table.hostname': 'Hostname',
'resources.table.ip': 'IP',
'resources.table.cpu': 'CPU',
'resources.table.memory': 'Memory',
'resources.table.gpu': 'GPU',
'resources.table.disk': 'Storage',
'resources.table.vram': 'VRAM'
};
+5 -1
View File
@@ -1,9 +1,13 @@
import menu from './en-US/menu';
import common from './zh-CN/common';
import models from './zh-CN/models';
import playground from './zh-CN/playground';
import resources from './zh-CN/resources';
export default {
...common,
...menu,
...models
...models,
...playground,
...resources
};
+5
View File
@@ -0,0 +1,5 @@
export default {
'apikeys.title': 'API 密钥',
'apikeys.button.create': '新建 API 密钥',
'apikeys.form.expiretime': '过期时间'
};
+5 -1
View File
@@ -40,6 +40,7 @@ export default {
'common.button.edit': '编辑',
'common.button.authorize': '角色授权',
'common.button.confirm': '确定',
'common.button.viewlog': '查看日志',
'common.table.operation': '操作',
'common.table.createTime': '创建时间',
'common.table.updateTime': '更新时间',
@@ -170,5 +171,8 @@ export default {
'common.nodata.added': '尚未添加{type}',
'common.status.edited': '已编辑',
'common.table.user': '用户',
'common.settings.instructions': '操作指引'
'common.settings.instructions': '操作指引',
'common.settings.language': '语言',
'common.delete.confirm': '确定删除选中的{type}吗?',
'common.filter.name': '名称查询'
};
+10 -1
View File
@@ -1 +1,10 @@
export default {};
export default {
'menu.dashboard': '概览',
'menu.playground': '对话',
'menu.models': '模型',
'menu.resources': '资源',
'menu.apikeys': 'API 密钥',
'menu.users': '用户',
'menu.profile': '个人信息',
'menu.login': '登录'
};
+12 -1
View File
@@ -1,3 +1,14 @@
export default {
'models.button.deploy': 'Deploy Model'
'models.button.deploy': '部署模型',
'models.title': '模型',
'models.table.models': '模型',
'models.table.name': '模型名称',
'models.form.source': '来源',
'models.form.repoid': '仓库 ID',
'models.form.repoid.desc': '只支持 .gguf 格式',
'models.form.filename': '文件名',
'models.form.replicas': '副本数',
'models.form.s3address': 'S3 地址',
'models.openinplayground': '在 Playground 中打开',
'models.instances': '实例'
};
+16
View File
@@ -0,0 +1,16 @@
export default {
'playground.system.tips': '在这里输入系统消息...',
'playground.title': '对话',
'playground.system': '系统',
'playground.user': '用户',
'playground.assistant': '助手',
'playground.newMessage': '新消息',
'playground.viewcode': '查看代码',
'playground.model': '模型',
'playground.parameters': '参数',
'playground.viewcode.info':
'你可以使用以下代码将当前的提示和设置集成到你的应用程序中。',
'playground.completion': '补全',
'playground.prompt': '提示',
'playground.tokenusage': 'Token 使用量'
};
+11
View File
@@ -0,0 +1,11 @@
export default {
'resources.title': '资源',
'resources.nodes': '节点',
'resources.table.hostname': '主机名',
'resources.table.ip': 'IP',
'resources.table.cpu': 'CPU',
'resources.table.memory': '内存',
'resources.table.gpu': 'GPU',
'resources.table.disk': '磁盘',
'resources.table.vram': '显存'
};