Skip to content

Commit

Permalink
Merge pull request #64 from ArcticLampyrid/feat/add_zh-CN_translation
Browse files Browse the repository at this point in the history
feat: add zh-CN translation
  • Loading branch information
n-peugnet committed Jan 10, 2024
2 parents c1db8c1 + 9c521ad commit 3501b1c
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
53 changes: 53 additions & 0 deletions locales/translation-zh_CN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"Are you sure you want to delete this file?": "您确定要删除这个文件吗?",
"Are you sure you want to delete {count} files?": "您确定要删除 {count} 个文件吗?",
"Automatic theme": "自动主题",
"Cancel": "取消",
"Copy": "复制",
"Could not access filesystem.": "无法访问文件系统。",
"Create": "创建",
"Create new folder": "创建新文件夹",
"Cut": "剪切",
"Dark theme": "深色主题",
"Delete": "删除",
"Delete selected files": "删除选中的文件",
"Delete this file": "删除此文件",
"Deleting files": "正在删除文件",
"Details": "详情",
"Enter a name for the new folder.": "输入新文件夹的名称。",
"Error": "错误",
"Help improving": "帮助改进",
"Home": "主页",
"Language": "语言",
"Last Modified": "最后修改",
"Light theme": "浅色主题",
"Loading files": "正在加载文件",
"Log in": "登录",
"Log out": "注销",
"Logging in": "正在登录",
"Max file size:": "最大文件大小:",
"Menu": "菜单",
"Move": "移动",
"Name": "名称",
"Network Error": "网络错误",
"New folder": "新文件夹",
"New name": "新名称",
"Next page": "下一页",
"Password": "密码",
"Paste": "粘贴",
"Previous page": "上一页",
"Rename": "重命名",
"Rename file": "重命名文件",
"Select files": "选择文件",
"Size": "大小",
"Storage space": "存储空间",
"Upload": "上传",
"Upload files": "上传文件",
"Username": "用户名",
"Version: {version}": "版本:{version}",
"of {total} pages": "共 {total} 页",
"{count} files": "{count} 个文件",
"{count} files selected": "{count} 个文件被选中",
"{first}-{last} of {total} elements": "第 {first}-{last} 个(共 {total} 个)",
"{used} used of {total}": "已使用 {used} / 总共 {total}"
}
2 changes: 2 additions & 0 deletions src/locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import en from "../locales/translation-en.json";
addMessages("en", en);
register("fr", () => import("../locales/translation-fr.json"));
register("nb", () => import("../locales/translation-nb_NO.json"));
register("zh-CN", () => import("../locales/translation-zh_CN.json"));
init({
fallbackLocale: "en",
});
Expand All @@ -31,4 +32,5 @@ export const labels: Record<string, string> = {
"en": "English",
"fr": "Français",
"nb": "Norsk Bokmål",
"zh-CN": "中文(简体)",
};

0 comments on commit 3501b1c

Please sign in to comment.