Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create zh-cn.ts #1604

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions src/translations/zh-cn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { registerTranslation } from '../utilities/localize.js';
import type { Translation } from '../utilities/localize.js';

const translation: Translation = {
$code: 'zh-cn',
$name: '简体中文',
$dir: 'ltr',

carousel: '跑马灯',
clearEntry: '清空',
close: '关闭',
copied: '已复制',
copy: '复制',
currentValue: '当前值',
error: '错误',
goToSlide: (slide, count) => `转到第 ${slide} 张幻灯片,共 ${count} 张`,
hidePassword: '隐藏密码',
loading: '加载中',
nextSlide: '下一张幻灯片',
numOptionsSelected: num => {
if (num === 0) return '未选择任何项目';
if (num === 1) return '已选择 1 个项目';
return `${num} 选择项目`;
},
previousSlide: '上一张幻灯片',
progress: '进度',
remove: '删除',
resize: '调整大小',
scrollToEnd: '滚动至页尾',
scrollToStart: '滚动至页首',
selectAColorFromTheScreen: '从屏幕中选择一种颜色',
showPassword: '显示密码',
slideNum: slide => `幻灯片 ${slide}`,
toggleColorFormat: '切换颜色模式'
};

registerTranslation(translation);

export default translation;