Skip to content

Commit 0b8b164

Browse files
committed
feat: update chinese translation
1 parent ce53772 commit 0b8b164

File tree

6 files changed

+65
-66
lines changed

6 files changed

+65
-66
lines changed

components/editor/dictionary.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ export const useDictionary = () => {
2525
deleteRow: t('Delete row'),
2626
deleteTable: t('Delete table'),
2727
deleteImage: t('Delete image'),
28-
alignImageLeft: t('Float left half width'),
29-
alignImageRight: t('Float right half width'),
30-
alignImageDefault: t('Center large'),
3128
em: t('Italic'),
3229
embedInvalidLink: t('Sorry, that link won’t work for this embed type'),
3330
findOrCreateDoc: t('Find or create a note…'),
@@ -64,6 +61,7 @@ export const useDictionary = () => {
6461
tipNotice: t('Tip notice'),
6562
warning: t('Warning'),
6663
warningNotice: t('Warning notice'),
64+
editorPlaceholder: t('Write something nice…'),
6765
}),
6866
[t]
6967
)

components/editor/editor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const Editor: FC<EditorProps> = ({ readOnly }) => {
4444
ref={editorEl}
4545
value={mounted ? note?.content : ''}
4646
onChange={onEditorChange}
47+
placeholder={dictionary.editorPlaceholder}
4748
theme={editorTheme}
4849
uploadImage={(file) => onUploadImage(file, note?.id)}
4950
onSearchLink={onSearchLink}

locales/de-DE.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
"Bold": "Bold",
1212
"Bulleted list": "Bulleted list",
1313
"Cancel": "Abbrechen",
14-
"Center large": "Center large",
1514
"Code": "Code",
1615
"Code block": "Code block",
1716
"Copied to clipboard": "Copied to clipboard",
1817
"Copied!": "Kopiert!",
1918
"Copy Link": "Link kopieren",
2019
"Copy to clipboard": "In die Zwischenablage kopieren",
2120
"Create a new note": "Create a new note",
21+
"Create bookmark": "Create bookmark",
22+
"Create embed": "Create embed",
2223
"Create link": "Create link",
2324
"Create page": "Seite erstellen",
2425
"Daily Notes": "Tägliche Notizen",
@@ -36,8 +37,6 @@
3637
"Favorites": "Favorites",
3738
"File size must be less than {{n}}mb": "File size must be less than {{n}}mb",
3839
"Find or create a note…": "Find or create a note…",
39-
"Float left half width": "Float left half width",
40-
"Float right half width": "Float right half width",
4140
"Fold Favorites": "Fold Favorites",
4241
"Fold sidebar": "Seitenleiste einklappen",
4342
"Forward": "Forward",
@@ -109,5 +108,6 @@
109108
"Type '/' to insert…": "Type '/' to insert…",
110109
"Untitled": "Unbenannt",
111110
"Warning": "Warning",
112-
"Warning notice": "Warning notice"
111+
"Warning notice": "Warning notice",
112+
"Write something nice…": "Write something nice…"
113113
}

locales/en.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
"Bold": "Bold",
1212
"Bulleted list": "Bulleted list",
1313
"Cancel": "Cancel",
14-
"Center large": "Center large",
1514
"Code": "Code",
1615
"Code block": "Code block",
1716
"Copied to clipboard": "Copied to clipboard",
1817
"Copied!": "Copied!",
1918
"Copy Link": "Copy Link",
2019
"Copy to clipboard": "Copy to clipboard",
2120
"Create a new note": "Create a new note",
21+
"Create bookmark": "Create bookmark",
22+
"Create embed": "Create embed",
2223
"Create link": "Create link",
2324
"Create page": "Create page",
2425
"Daily Notes": "Daily Notes",
@@ -36,8 +37,6 @@
3637
"Favorites": "Favorites",
3738
"File size must be less than {{n}}mb": "File size must be less than {{n}}mb",
3839
"Find or create a note…": "Find or create a note…",
39-
"Float left half width": "Float left half width",
40-
"Float right half width": "Float right half width",
4140
"Fold Favorites": "Fold Favorites",
4241
"Fold sidebar": "Fold sidebar",
4342
"Forward": "Forward",
@@ -109,5 +108,6 @@
109108
"Type '/' to insert…": "Type '/' to insert…",
110109
"Untitled": "Untitled",
111110
"Warning": "Warning",
112-
"Warning notice": "Warning notice"
111+
"Warning notice": "Warning notice",
112+
"Write something nice…": "Write something nice…"
113113
}

locales/ru-RU.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
"Bold": "Bold",
1212
"Bulleted list": "Bulleted list",
1313
"Cancel": "Отмена",
14-
"Center large": "Center large",
1514
"Code": "Code",
1615
"Code block": "Code block",
1716
"Copied to clipboard": "Copied to clipboard",
1817
"Copied!": "Скопировано!",
1918
"Copy Link": "Копировать ссылку",
2019
"Copy to clipboard": "Копировать в буфер обмена",
2120
"Create a new note": "Create a new note",
21+
"Create bookmark": "Create bookmark",
22+
"Create embed": "Create embed",
2223
"Create link": "Create link",
2324
"Create page": "Создать страницу",
2425
"Daily Notes": "Ежедневные заметки",
@@ -36,8 +37,6 @@
3637
"Favorites": "Favorites",
3738
"File size must be less than {{n}}mb": "File size must be less than {{n}}mb",
3839
"Find or create a note…": "Find or create a note…",
39-
"Float left half width": "Float left half width",
40-
"Float right half width": "Float right half width",
4140
"Fold Favorites": "Fold Favorites",
4241
"Fold sidebar": "Свернуть боковую панель",
4342
"Forward": "Forward",
@@ -109,5 +108,6 @@
109108
"Type '/' to insert…": "Type '/' to insert…",
110109
"Untitled": "Без имени",
111110
"Warning": "Warning",
112-
"Warning notice": "Warning notice"
111+
"Warning notice": "Warning notice",
112+
"Write something nice…": "Write something nice…"
113113
}

locales/zh-CN.json

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -11,103 +11,103 @@
1111
"Bold": "加粗",
1212
"Bulleted list": "无序列表",
1313
"Cancel": "取消",
14-
"Center large": "Center large",
15-
"Code": "Code",
16-
"Code block": "Code block",
17-
"Copied to clipboard": "Copied to clipboard",
14+
"Code": "代码",
15+
"Code block": "代码块",
16+
"Copied to clipboard": "复制到剪贴板",
1817
"Copied!": "已复制",
1918
"Copy Link": "拷贝链接",
2019
"Copy to clipboard": "复制到剪贴板",
21-
"Create a new note": "Create a new note",
22-
"Create link": "Create link",
20+
"Create a new note": "创建新笔记",
21+
"Create bookmark": "创建书签",
22+
"Create embed": "创建嵌入",
23+
"Create link": "创建链接",
2324
"Create page": "新建页面",
2425
"Daily Notes": "每日笔记",
2526
"Daily notes are saved in": "每日笔记保存位置",
2627
"Daily notes will be created under this page": "每日笔记将在指定页面下创建",
2728
"Dark": "深色",
2829
"Delete": "删除",
29-
"Delete column": "Delete column",
30-
"Delete image": "Delete image",
31-
"Delete row": "Delete row",
32-
"Delete table": "Delete table",
30+
"Delete column": "删除列",
31+
"Delete image": "删除图片",
32+
"Delete row": "删除行",
33+
"Delete table": "删除表格",
3334
"Disable editing in the demo.": "demo 禁止编辑",
34-
"Divider": "Divider",
35+
"Divider": "分割线",
3536
"Export": "导出",
3637
"Favorites": "收藏夹",
3738
"File size must be less than {{n}}mb": "文件大小不超过 {{n}}mb",
38-
"Find or create a note…": "Find or create a note…",
39-
"Float left half width": "Float left half width",
40-
"Float right half width": "Float right half width",
39+
"Find or create a note…": "查找或创建笔记",
4140
"Fold Favorites": "折叠收藏夹",
4241
"Fold sidebar": "折叠侧边栏",
4342
"Forward": "前进",
44-
"Heading": "Heading",
45-
"Highlight": "Highlight",
46-
"Image": "Image",
43+
"Heading": "标题",
44+
"Highlight": "高亮",
45+
"Image": "图片",
4746
"Import": "导入",
4847
"Import & Export": "导入导出",
4948
"Import a zip file containing markdown files to this location, or export all pages from this location.": "导入一个包含 markdown 的 zip 文件到指定位置,或者从指定位置导出所有页面。",
50-
"Info": "Info",
51-
"Info notice": "Info notice",
49+
"Info": "提示",
50+
"Info notice": "提示信息",
5251
"Inject analytics or other scripts into the HTML of your sharing page. ": "注入统计代码或者其他脚本到你的分享页面中。",
53-
"Insert column after": "Insert column after",
54-
"Insert column before": "Insert column before",
55-
"Insert row after": "Insert row after",
56-
"Insert row before": "Insert row before",
57-
"Italic": "Italic",
58-
"Keep typing to filter…": "Keep typing to filter…",
52+
"Insert column after": "向后插入列",
53+
"Insert column before": "在左侧插入列",
54+
"Insert row after": "上方插入行",
55+
"Insert row before": "下方插入行",
56+
"Italic": "斜体",
57+
"Keep typing to filter…": "继续输入以过滤",
5958
"Language": "语言",
6059
"Light": "浅色",
61-
"Link": "Link",
62-
"Link copied to clipboard": "Link copied to clipboard",
60+
"Link": "链接",
61+
"Link copied to clipboard": "链接已经复制到剪贴板",
6362
"Linked to this page": "引用的页面",
6463
"Location": "位置",
65-
"Medium heading": "Medium heading",
64+
"Medium heading": "中标题",
6665
"My Pages": "我的页面",
6766
"New Page": "新页面",
6867
"No notes inside": "",
69-
"No results": "No results",
68+
"No results": "没有找到结果",
7069
"Not a public page": "非公开页面",
7170
"Not found markdown file": "没有找到 markdown 文件",
72-
"Open link": "Open link",
73-
"Ordered list": "Ordered list",
74-
"Page break": "Page break",
75-
"Paste a link…": "Paste a link…",
76-
"Paste a {{title}} link…": "Paste a {{title}} link",
77-
"Placeholder": "Placeholder",
71+
"Open link": "打开链接",
72+
"Ordered list": "有序列表",
73+
"Page break": "分页符",
74+
"Paste a link…": "粘贴链接",
75+
"Paste a {{title}} link…": "粘贴 {{title}} 链接",
76+
"Placeholder": "占位符",
7877
"Please select zip file": "请选择 zip 文件",
79-
"Quote": "Quote",
78+
"Quote": "引用",
8079
"Recovery": "恢复",
8180
"Remove": "移除",
8281
"Remove from Favorites": "从收藏夹移除",
83-
"Remove link": "Remove link",
82+
"Remove link": "移除链接",
8483
"Remove, Copy Link, etc": "删除、复制链接等操作",
8584
"Root Page": "根页面",
8685
"Search note": "搜索笔记",
8786
"Search note in trash": "在回收站内搜索笔记",
88-
"Search or paste a link…": "Search or paste a link…",
87+
"Search or paste a link…": "搜索或粘贴链接",
8988
"Settings": "设置",
9089
"Share page": "分享页面",
9190
"Share to web": "公开分享",
9291
"Sharing": "分享",
93-
"Small heading": "Small heading",
92+
"Small heading": "小标题",
9493
"Snippet injection": "代码段注入",
95-
"Sorry, an error occurred creating the link": "Sorry, an error occurred creating the link",
96-
"Sorry, an error occurred uploading the image": "Sorry, an error occurred uploading the image",
97-
"Sorry, that link won’t work for this embed type": "Sorry, that link won’t work for this embed type",
98-
"Strikethrough": "Strikethrough",
99-
"Subheading": "Subheading",
94+
"Sorry, an error occurred creating the link": "抱歉,创建链接时发生错误",
95+
"Sorry, an error occurred uploading the image": "抱歉,上传图片时发生错误",
96+
"Sorry, that link won’t work for this embed type": "抱歉,该链接不适用于此嵌入类型",
97+
"Strikethrough": "删除线",
98+
"Subheading": "副标题",
10099
"Successfully imported {{n}} markdown files": "成功导入 {{n}} 个 markdown 文件",
101100
"Sync with system": "自动",
102-
"Table": "Table",
101+
"Table": "表格",
103102
"Theme mode": "主题模式",
104103
"This page is in trash": "页面在回收站内",
105-
"Tip": "Tip",
106-
"Tip notice": "Tip notice",
107-
"Todo list": "Todo list",
104+
"Tip": "提示",
105+
"Tip notice": "提示信息",
106+
"Todo list": "待办事项",
108107
"Trash": "回收站",
109-
"Type '/' to insert…": "Type '/' to insert…",
108+
"Type '/' to insert…": "输入“/”以插入",
110109
"Untitled": "无标题",
111-
"Warning": "Warning",
112-
"Warning notice": "Warning notice"
110+
"Warning": "警告",
111+
"Warning notice": "警告信息",
112+
"Write something nice…": "写点什么..."
113113
}

0 commit comments

Comments
 (0)