Skip to content

Commit

Permalink
Merge pull request #922 from jimcat8/cn_trans
Browse files Browse the repository at this point in the history
Update localization
  • Loading branch information
Fabio286 authored Jan 16, 2025
2 parents 0d8bcf5 + fbe28f0 commit 8d0ff49
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,24 @@
"contributions": [
"translation"
]
},
{
"login": "salvymc",
"name": "Salvatore Forino",
"avatar_url": "https://avatars.githubusercontent.com/u/10051897?v=4",
"profile": "https://github.com/salvymc",
"contributions": [
"code"
]
},
{
"login": "JoseGonzalez84",
"name": "José González",
"avatar_url": "https://avatars.githubusercontent.com/u/16820141?v=4",
"profile": "https://gadev.com.es/",
"contributions": [
"translation"
]
}
],
"contributorsPerLine": 7,
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/carvalhods"><img src="https://avatars.githubusercontent.com/u/6569255?v=4?s=100" width="100px;" alt="David Carvalho"/><br /><sub><b>David Carvalho</b></sub></a><br /><a href="#platform-carvalhods" title="Packaging/porting to new platform">📦</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/r4f4dev"><img src="https://avatars.githubusercontent.com/u/65920592?v=4?s=100" width="100px;" alt="r4f4dev"/><br /><sub><b>r4f4dev</b></sub></a><br /><a href="#translation-r4f4dev" title="Translation">🌍</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/salvymc"><img src="https://avatars.githubusercontent.com/u/10051897?v=4?s=100" width="100px;" alt="Salvatore Forino"/><br /><sub><b>Salvatore Forino</b></sub></a><br /><a href="https://github.com/antares-sql/antares/commits?author=salvymc" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://gadev.com.es/"><img src="https://avatars.githubusercontent.com/u/16820141?v=4?s=100" width="100px;" alt="José González"/><br /><sub><b>José González</b></sub></a><br /><a href="#translation-JoseGonzalez84" title="Translation">🌍</a></td>
</tr>
</tbody>
</table>
Expand Down
19 changes: 16 additions & 3 deletions src/renderer/i18n/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export const zhCN = {
insert: '插入',
indexes: '索引',
foreignKeys: '外键',
tableChecks: '表检查',
length: '长度',
unsigned: '无符号',
default: '默认',
Expand All @@ -131,6 +132,7 @@ export const zhCN = {
total: '总计',
table: '表 | 表',
view: '视图 | 视图',
materializedview: '实体化视图 | 实体化视图',
definer: '定义者',
algorithm: '算法',
trigger: '触发器 | 触发器',
Expand Down Expand Up @@ -180,12 +182,15 @@ export const zhCN = {
addNewField: '添加新字段',
manageIndexes: '管理索引',
manageForeignKeys: '管理外键',
manageTableChecks: '管理表 check 约束',
allowNull: '允许 NULL',
zeroFill: '零填充',
customValue: '自定义值',
onUpdate: '在更新',
deleteField: '删除字段',
createNewIndex: '创建新索引',
createNewCheck: '创建新 check 约束',
checkClause: 'Check 约束',
addToIndex: '添加到索引',
createNewTable: '创建新表',
emptyTable: '清空表',
Expand All @@ -195,6 +200,7 @@ export const zhCN = {
emptyConfirm: '您是否确认清空',
thereAreNoIndexes: '没有索引',
thereAreNoForeign: '没有外键',
thereAreNoTableChecks: '没有表 check 约束',
createNewForeign: '创建新外键',
referenceTable: '参考表',
referenceField: '参考字段',
Expand All @@ -207,6 +213,7 @@ export const zhCN = {
updateOption: '更新选项',
deleteView: '删除视图',
createNewView: '创建新视图',
createNewMaterializedView: '创建新实体化视图',
deleteTrigger: '删除触发器',
createNewTrigger: '创建新触发器',
currentUser: '当前用户',
Expand Down Expand Up @@ -239,6 +246,7 @@ export const zhCN = {
thereAreNoTableFields: '没有表的字段',
newTable: '新表',
newView: '新视图',
newMaterializedView: '新实体化视图',
newTrigger: '新触发器',
newRoutine: '新例程',
newFunction: '新函数',
Expand Down Expand Up @@ -300,6 +308,7 @@ export const zhCN = {
color: '颜色',
label: '标签',
icon: '图标',
customIcon: '定制图标',
fileName: '文件名称',
choseFile: '选择文件',
data: '数据',
Expand All @@ -324,7 +333,7 @@ export const zhCN = {
wrapLongLines: '将长行换行显示',
markdownSupported: '支持 Markdown',
plantATree: '种植一棵树',
dataTabPageSize: '数据标签的页面大小',
dataTabPageSize: '每页结果',
noOpenTabs: '没有打开的标签, 请在左侧栏上导航或:',
restorePreviousSession: '恢复上一个会话',
closeTab: '关闭标签',
Expand All @@ -348,14 +357,15 @@ export const zhCN = {
saveContent: '保存内容',
openAllConnections: '打开所有连接',
openSettings: '打开设置',
openScratchpad: '打开草稿栏',
runOrReload: '运行或重新加载',
openFilter: '打开过滤器',
nextResultsPage: '下一个结果页',
previousResultsPage: '上一个结果页',
editFolder: '编辑文件夹',
folderName: '文件夹名称',
deleteFolder: '删除文件夹',
newFolder: '新文件夹',
outOfFolder: '',
editConnectionAppearance: '编辑连接的外观',
defaultCopyType: '默认复制类型',
showTableSize: '在侧边栏显示表大小',
Expand Down Expand Up @@ -394,7 +404,10 @@ export const zhCN = {
saveFile: '保存文件',
saveFileAs: '将文件另存为',
openFile: '打开文件',
openNotes: '打开笔记'
openNotes: '打开笔记',
debugConsole: '调试控制台',
executedQueries: '执行的查询',
sizeLimitError: '超过 {size} 的最大大小'
},
faker: { // Faker.js 方法,用于随机生成的内容
address: '地址',
Expand Down

0 comments on commit 8d0ff49

Please sign in to comment.