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

feat: update en_US to latest , translate zh_CN and zh_TW #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
8 changes: 7 additions & 1 deletion lib/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
},
"print": {
"cancel": "Cancel",
"close": "Close",
"disallowPrint": "The document does not allow to print",
"preparingDocument": "Preparing document ...",
"print": "Print"
},
Expand All @@ -71,7 +73,11 @@
"rotateForward": "Rotate clockwise"
},
"scrollMode": {
"dualPage": "Dual page",
"dualPageCover": "Dual page with cover",
"horizontalScrolling": "Horizontal scrolling",
"pageScrolling": "Page scrolling",
"singlePage": "Single page",
"verticalScrolling": "Vertical scrolling",
"wrappedScrolling": "Wrapped scrolling"
},
Expand Down Expand Up @@ -106,4 +112,4 @@
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
}
}
}
60 changes: 33 additions & 27 deletions lib/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"core": {
"askingPassword": {
"requirePasswordToOpen": "此文件需要密码才能打开",
"requirePasswordToOpen": "此文档需要密码才能打开",
"submit": "提交"
},
"wrongPassword": {
"submit": "提交",
"tryAgain": "密码错误请重试"
"tryAgain": "密码错误请重试"
},
"pageLabel": "页面 {{pageIndex}}"
"pageLabel": " {{pageIndex}}"
},
"defaultLayout": {
"attachment": "附件",
Expand All @@ -26,14 +26,14 @@
"download": "下载"
},
"drop": {
"dragDropFile": "将 PDF 文档拖放到此处"
"dragDropFile": "拖放PDF文件到此处"
},
"fullScreen": {
"enterFullScreen": "全屏",
"exitFullScreen": "退出全屏"
},
"localeSwitcher": {
"switchLocale": "更改区域设置"
"switchLocale": "切换语言"
},
"open": {
"openFile": "打开文件"
Expand All @@ -47,20 +47,22 @@
},
"print": {
"cancel": "取消",
"preparingDocument": "准备文件...",
"close": "关闭",
"disallowPrint": "该文档不允许打印",
"preparingDocument": "正在准备文档...",
"print": "打印"
},
"properties": {
"author": "作者",
"close": "关闭",
"creationDate": "创作日期",
"creator": "创作者",
"fileName": "文件名称",
"creationDate": "创建日期",
"creator": "创建者",
"fileName": "文件名",
"fileSize": "文件大小",
"keywords": "关键词",
"modificationDate": "修改日期",
"pageCount": "页数",
"pdfProducer": "PDF制作软件",
"pdfProducer": "PDF生成器",
"pdfVersion": "PDF版本",
"showProperties": "显示属性",
"subject": "主题",
Expand All @@ -71,39 +73,43 @@
"rotateForward": "顺时针旋转"
},
"scrollMode": {
"dualPage": "双页",
"dualPageCover": "带封面的双页",
"horizontalScrolling": "水平滚动",
"pageScrolling": "翻页滚动",
"singlePage": "单页",
"verticalScrolling": "垂直滚动",
"wrappedScrolling": "环绕滚动"
"wrappedScrolling": "包裹滚动"
},
"search": {
"close": "关闭",
"enterToSearch": "输入搜索词",
"matchCase": "相符",
"nextMatch": "下一个相符",
"previousMatch": "上一个相符",
"enterToSearch": "输入进行搜索",
"matchCase": "区分大小写",
"nextMatch": "下一个匹配项",
"previousMatch": "上一个匹配项",
"search": "搜索",
"wholeWords": "全部词句"
"wholeWords": "全字匹配"
},
"selectionMode": {
"handTool": "手型工具",
"handTool": "手动工具",
"textSelectionTool": "文本选择工具"
},
"theme": {
"switchDarkTheme": "切换到深色模式",
"switchLightTheme": "切换到浅色模式"
"switchDarkTheme": "切换到暗色主题",
"switchLightTheme": "切换到亮色主题"
},
"thumbnail": {
"thumbnailLabel": "页面缩略图 {{pageIndex}}"
"thumbnailLabel": " {{pageIndex}} 页的缩略图"
},
"toolbar": {
"moreActions": "更多操作"
},
"zoom": {
"actualSize": "实际尺寸",
"pageFit": "适合页面",
"pageWidth": "页面宽度",
"zoomDocument": "缩放文件",
"zoomIn": "缩小",
"zoomOut": "放大"
"actualSize": "实际大小",
"pageFit": "适应页面",
"pageWidth": "适应页面宽度",
"zoomDocument": "缩放文档",
"zoomIn": "放大",
"zoomOut": "缩小"
}
}
}
56 changes: 31 additions & 25 deletions lib/zh_TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
},
"wrongPassword": {
"submit": "提交",
"tryAgain": "密碼錯誤請重試"
"tryAgain": "密碼錯誤請重試"
},
"pageLabel": "頁面 {{pageIndex}}"
"pageLabel": " {{pageIndex}}"
},
"defaultLayout": {
"attachment": "附件",
Expand All @@ -26,14 +26,14 @@
"download": "下載"
},
"drop": {
"dragDropFile": "將 PDF 文檔拖放到此處"
"dragDropFile": "拖放PDF文件到這裡"
},
"fullScreen": {
"enterFullScreen": "全屏",
"exitFullScreen": "退出全屏"
},
"localeSwitcher": {
"switchLocale": "更改區域設置"
"switchLocale": "切換語言"
},
"open": {
"openFile": "打開文件"
Expand All @@ -47,20 +47,22 @@
},
"print": {
"cancel": "取消",
"preparingDocument": "準備文件...",
"close": "關閉",
"disallowPrint": "該文件不允許打印",
"preparingDocument": "正在準備文件...",
"print": "打印"
},
"properties": {
"author": "作者",
"close": "關閉",
"creationDate": "創作日期",
"creator": "創作者",
"fileName": "文件名稱",
"creationDate": "創建日期",
"creator": "創建者",
"fileName": "文件名",
"fileSize": "文件大小",
"keywords": "關鍵詞",
"modificationDate": "修改日期",
"pageCount": "頁數",
"pdfProducer": "PDF製作軟體",
"pdfProducer": "PDF生成器",
"pdfVersion": "PDF版本",
"showProperties": "顯示屬性",
"subject": "主題",
Expand All @@ -71,39 +73,43 @@
"rotateForward": "順時針旋轉"
},
"scrollMode": {
"dualPage": "雙頁",
"dualPageCover": "帶封面的雙頁",
"horizontalScrolling": "水平滾動",
"pageScrolling": "頁面滾動",
"singlePage": "單頁",
"verticalScrolling": "垂直滾動",
"wrappedScrolling": "環繞滾動"
"wrappedScrolling": "包裝滾動"
},
"search": {
"close": "關閉",
"enterToSearch": "輸入搜索詞",
"matchCase": "相符",
"nextMatch": "下一個相符",
"previousMatch": "上一個相符",
"enterToSearch": "輸入搜索",
"matchCase": "區分大小寫",
"nextMatch": "下一個匹配項",
"previousMatch": "上一個匹配項",
"search": "搜索",
"wholeWords": "全部詞句"
"wholeWords": "全字匹配"
},
"selectionMode": {
"handTool": "手型工具",
"handTool": "手動工具",
"textSelectionTool": "文本選擇工具"
},
"theme": {
"switchDarkTheme": "切換到深色模式",
"switchLightTheme": "切換到淺色模式"
"switchDarkTheme": "切換到暗色主題",
"switchLightTheme": "切換到亮色主題"
},
"thumbnail": {
"thumbnailLabel": "頁面縮略圖 {{pageIndex}}"
"thumbnailLabel": " {{pageIndex}} 頁的縮略圖"
},
"toolbar": {
"moreActions": "更多操作"
},
"zoom": {
"actualSize": "實際尺寸",
"pageFit": "適合頁面",
"pageWidth": "頁面寬度",
"actualSize": "實際大小",
"pageFit": "適應頁面",
"pageWidth": "適應頁面寬度",
"zoomDocument": "縮放文件",
"zoomIn": "縮小",
"zoomOut": "放大"
"zoomIn": "放大",
"zoomOut": "縮小"
}
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-pdf-viewer/locales",
"version": "1.0.0",
"version": "1.1.0",
"description": "Translations of the React PDF Viewer's UI in different languages",
"license": "https://react-pdf-viewer.dev/license",
"author": {
Expand Down Expand Up @@ -33,4 +33,4 @@
"devDependencies": {
"prettier": "^2.3.2"
}
}
}