@open-document/core 0.9.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{build-B0GJXy8I.js → build-BHFGY8eF.js} +1 -1
- package/dist/{check-CuDIWsPT.js → check-UEBmDfT_.js} +3 -3
- package/dist/cli/bin.js +10 -6
- package/dist/{config-CAZ7Z_va.js → config-B_pdNbYg.js} +1166 -591
- package/dist/{context-PWAh9qbf.js → context-BM9_-u9P.js} +1 -1
- package/dist/{dev-CYqppXDI.js → dev-DX3QMIRi.js} +1 -1
- package/dist/{diagram-CCaUUnRe.js → diagram-BK4jTZr4.js} +146 -146
- package/dist/diff-DayvbXfX.js +44 -0
- package/dist/{export-1JtO2OMC.js → export-BPsXj1i6.js} +3 -3
- package/dist/{import-CsrdBOZ8.js → import-71wlAsrd.js} +2 -2
- package/dist/index.d.ts +53 -2
- package/dist/index.js +457 -18
- package/dist/ops/index.d.ts +72 -17
- package/dist/ops/index.js +3 -3
- package/dist/{ops-B2y9BMpk.js → ops-BUo67DaP.js} +642 -124
- package/dist/{preview-DW3PM-JV.js → preview-D3m1-gUL.js} +1 -1
- package/dist/{sdk-BqU6mwD_.d.ts → sdk-CpDEGRIo.d.ts} +2 -0
- package/dist/vite/index.js +1 -1
- package/package.json +2 -2
- package/skills/doc-authoring/SKILL.md +9 -4
- package/skills/doc-authoring/references/pagination.md +1 -1
- package/skills/doc-authoring/references/tables-and-charts.md +18 -1
- package/src/app/components/browser/browser-ui.tsx +105 -0
- package/src/app/components/chart.tsx +239 -0
- package/src/app/components/command-palette.tsx +284 -0
- package/src/app/components/design-panel/design-panel.tsx +22 -20
- package/src/app/components/design-panel/design-provider.tsx +4 -2
- package/src/app/components/diagram.tsx +11 -1
- package/src/app/components/doc-assets.tsx +6 -5
- package/src/app/components/doc-search.tsx +12 -10
- package/src/app/components/doc-sidebar.tsx +24 -18
- package/src/app/components/flow-page.tsx +2 -0
- package/src/app/components/inspector/format-section.tsx +434 -0
- package/src/app/components/inspector/inspector.tsx +310 -89
- package/src/app/components/inspector/use-style-edits.ts +210 -0
- package/src/app/components/language-toggle.tsx +38 -0
- package/src/app/components/palette-items.ts +128 -0
- package/src/app/components/panel/edit-save-card.tsx +4 -2
- package/src/app/components/panel/fields.tsx +100 -9
- package/src/app/components/panel/save-card.tsx +18 -10
- package/src/app/components/sidebar/folder-item.tsx +10 -8
- package/src/app/components/sidebar/icon-picker.tsx +3 -1
- package/src/app/components/sidebar/sidebar.tsx +44 -13
- package/src/app/components/theme-toggle.tsx +5 -3
- package/src/app/components/ui/menu.tsx +5 -0
- package/src/app/lib/agent-bridge.ts +8 -2
- package/src/app/lib/chart.test.ts +108 -0
- package/src/app/lib/chart.ts +343 -0
- package/src/app/lib/doc-preview.tsx +0 -10
- package/src/app/lib/docs.ts +3 -0
- package/src/app/lib/docx/from-dom.ts +11 -11
- package/src/app/lib/docx/ooxml.test.ts +25 -9
- package/src/app/lib/docx/ooxml.ts +58 -37
- package/src/app/lib/export-docx.ts +13 -8
- package/src/app/lib/flow.ts +1 -1
- package/src/app/lib/i18n-ja/browser.ts +88 -0
- package/src/app/lib/i18n-ja/doc.ts +65 -0
- package/src/app/lib/i18n-ja/index.ts +5 -0
- package/src/app/lib/i18n-ja/panels.ts +151 -0
- package/src/app/lib/i18n-ko/browser.ts +87 -0
- package/src/app/lib/i18n-ko/doc.ts +65 -0
- package/src/app/lib/i18n-ko/index.ts +5 -0
- package/src/app/lib/i18n-ko/panels.ts +148 -0
- package/src/app/lib/i18n-zh-cn/browser.ts +84 -0
- package/src/app/lib/i18n-zh-cn/doc.ts +64 -0
- package/src/app/lib/i18n-zh-cn/index.ts +5 -0
- package/src/app/lib/i18n-zh-cn/panels.ts +143 -0
- package/src/app/lib/i18n-zh-tw/browser.ts +84 -0
- package/src/app/lib/i18n-zh-tw/doc.ts +64 -0
- package/src/app/lib/i18n-zh-tw/index.ts +5 -0
- package/src/app/lib/i18n-zh-tw/panels.ts +144 -0
- package/src/app/lib/i18n.test.ts +24 -0
- package/src/app/lib/i18n.tsx +109 -0
- package/src/app/lib/inspector/format.ts +156 -0
- package/src/app/lib/outline.ts +23 -0
- package/src/app/lib/page-range.test.ts +10 -1
- package/src/app/lib/page-range.ts +26 -0
- package/src/app/lib/sdk.ts +2 -0
- package/src/app/main.tsx +4 -1
- package/src/app/routes/assets.tsx +193 -132
- package/src/app/routes/doc.tsx +668 -310
- package/src/app/routes/home-shell.tsx +115 -88
- package/src/app/routes/home.tsx +200 -67
- package/src/app/routes/themes.tsx +42 -35
- package/src/app/styles.css +84 -5
- package/src/app/virtual.d.ts +1 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
export const PANELS: Record<string, string> = {
|
|
2
|
+
Design: '디자인',
|
|
3
|
+
'This document has no design const yet — saving writes one':
|
|
4
|
+
'이 문서에는 아직 design 상수가 없습니다 — 저장하면 새로 작성됩니다',
|
|
5
|
+
Draft: '초안',
|
|
6
|
+
'Unsaved changes': '저장되지 않은 변경 사항',
|
|
7
|
+
'Shuffle preset': '프리셋 무작위 적용',
|
|
8
|
+
'Reset to defaults': '기본값으로 재설정',
|
|
9
|
+
'Close design panel (D)': '디자인 패널 닫기 (D)',
|
|
10
|
+
Palette: '색상',
|
|
11
|
+
Fonts: '서체',
|
|
12
|
+
'Type scale': '글자 크기',
|
|
13
|
+
Page: '페이지',
|
|
14
|
+
Sheet: '용지',
|
|
15
|
+
Text: '텍스트',
|
|
16
|
+
Muted: '보조 텍스트',
|
|
17
|
+
Accent: '강조 색상',
|
|
18
|
+
Rule: '구분선',
|
|
19
|
+
Heading: '제목',
|
|
20
|
+
Body: '본문',
|
|
21
|
+
Mono: '고정폭',
|
|
22
|
+
Title: '표제',
|
|
23
|
+
Caption: '캡션',
|
|
24
|
+
'System sans': '시스템 산세리프',
|
|
25
|
+
'Georgia serif': 'Georgia 세리프',
|
|
26
|
+
'Times serif': 'Times 세리프',
|
|
27
|
+
'Body under 12px prints below 9pt — hard to read on paper.':
|
|
28
|
+
'본문이 12px보다 작으면 9pt 미만으로 인쇄되어 종이에서 읽기 어렵습니다.',
|
|
29
|
+
Margin: '여백',
|
|
30
|
+
Leading: '행간',
|
|
31
|
+
Radius: '모서리 반경',
|
|
32
|
+
'Failed to save': '저장 실패',
|
|
33
|
+
'{label} swatch': '{label} 색상 견본',
|
|
34
|
+
'Custom (from source)': '사용자 지정 (소스 코드 기준)',
|
|
35
|
+
Undo: '실행 취소',
|
|
36
|
+
Redo: '다시 실행',
|
|
37
|
+
Saved: '저장됨',
|
|
38
|
+
'{count} unsaved change': '저장되지 않은 변경 사항 {count}개',
|
|
39
|
+
'{count} unsaved changes': '저장되지 않은 변경 사항 {count}개',
|
|
40
|
+
Discard: '취소',
|
|
41
|
+
Save: '저장',
|
|
42
|
+
Saving: '저장 중',
|
|
43
|
+
'Not everything was saved': '일부 변경 사항이 저장되지 않았습니다',
|
|
44
|
+
'Find in document': '문서에서 찾기',
|
|
45
|
+
Find: '찾기',
|
|
46
|
+
'Previous match': '이전 항목',
|
|
47
|
+
'Next match': '다음 항목',
|
|
48
|
+
'Close search': '검색 닫기',
|
|
49
|
+
'Text formatting': '텍스트 서식',
|
|
50
|
+
'Link address': '링크 주소',
|
|
51
|
+
'https://… or #section': 'https://… 또는 #섹션',
|
|
52
|
+
'Only web, mail, phone, or in-document addresses':
|
|
53
|
+
'웹, 이메일, 전화 또는 문서 내 주소만 사용할 수 있습니다',
|
|
54
|
+
'Apply link': '링크 적용',
|
|
55
|
+
Apply: '적용',
|
|
56
|
+
'Remove link': '링크 제거',
|
|
57
|
+
Bold: '굵게',
|
|
58
|
+
Italic: '기울임꼴',
|
|
59
|
+
Code: '코드',
|
|
60
|
+
'Already bold — this element’s own style sets it':
|
|
61
|
+
'이미 굵게 표시됨 — 이 요소의 자체 스타일로 지정되어 있습니다',
|
|
62
|
+
Link: '링크',
|
|
63
|
+
'Clear formatting': '서식 지우기',
|
|
64
|
+
'Select words to format': '서식을 적용할 텍스트를 선택하세요',
|
|
65
|
+
'This text is passed in as a string — formatting needs text written in the document':
|
|
66
|
+
'이 텍스트는 문자열로 전달됩니다 — 서식은 문서에 직접 작성된 텍스트에만 적용할 수 있습니다',
|
|
67
|
+
'The text on the page does not line up with its source, so it cannot be edited here.':
|
|
68
|
+
'페이지의 텍스트가 소스 코드와 일치하지 않아 여기에서 편집할 수 없습니다.',
|
|
69
|
+
'Discarded unsaved edits': '저장되지 않은 편집 내용을 취소함',
|
|
70
|
+
'Save failed': '저장 실패',
|
|
71
|
+
'Saved to source': '소스 코드에 저장됨',
|
|
72
|
+
'{failed} of {total} not saved — {reason}': '{total}개 중 {failed}개 저장 안 됨 — {reason}',
|
|
73
|
+
refused: '거부됨',
|
|
74
|
+
'The document reloaded with new text here — {count} unsaved edit was lost':
|
|
75
|
+
'문서가 새 텍스트로 다시 로드되어 저장되지 않은 편집 {count}개가 손실되었습니다',
|
|
76
|
+
'The document reloaded with new text here — {count} unsaved edits were lost':
|
|
77
|
+
'문서가 새 텍스트로 다시 로드되어 저장되지 않은 편집 {count}개가 손실되었습니다',
|
|
78
|
+
'Type inside one run of text — the markup between runs stays as written.':
|
|
79
|
+
'하나의 텍스트 구간 안에서 입력하세요 — 구간 사이의 마크업은 그대로 유지됩니다.',
|
|
80
|
+
'source text does not match this element': '소스 코드의 텍스트가 이 요소와 일치하지 않음',
|
|
81
|
+
'could not read source': '소스 코드를 읽을 수 없음',
|
|
82
|
+
'This text cannot be edited here.': '이 텍스트는 여기에서 편집할 수 없습니다.',
|
|
83
|
+
'Marked in source — run /apply-comments': '소스 코드에 표시됨 — /apply-comments를 실행하세요',
|
|
84
|
+
'Could not add comment': '댓글을 추가할 수 없음',
|
|
85
|
+
'Enter to keep · Shift+Enter for a new line · Esc to revert':
|
|
86
|
+
'Enter 유지 · Shift+Enter 줄바꿈 · Esc 되돌리기',
|
|
87
|
+
'Double-click or Enter to edit text · Esc to deselect':
|
|
88
|
+
'더블 클릭 또는 Enter로 텍스트 편집 · Esc 선택 해제',
|
|
89
|
+
'Click to select · double-click to edit · Esc to leave':
|
|
90
|
+
'클릭하여 선택 · 더블 클릭하여 편집 · Esc 종료',
|
|
91
|
+
Element: '요소',
|
|
92
|
+
Close: '닫기',
|
|
93
|
+
'Not editable here.': '여기에서 편집할 수 없습니다.',
|
|
94
|
+
'Comment for the agent': '에이전트에게 남길 댓글',
|
|
95
|
+
'make this bold, shorten to one line…': '굵게 표시, 한 줄로 줄이기…',
|
|
96
|
+
'Mark comment': '댓글 표시',
|
|
97
|
+
Typography: '타이포그래피',
|
|
98
|
+
Color: '색상',
|
|
99
|
+
Font: '글꼴',
|
|
100
|
+
Size: '크기',
|
|
101
|
+
'Size in pixels': '크기(픽셀)',
|
|
102
|
+
Weight: '굵기',
|
|
103
|
+
'Line height': '줄 높이',
|
|
104
|
+
'Letter spacing in pixels': '자간(픽셀)',
|
|
105
|
+
Fill: '채우기',
|
|
106
|
+
Background: '배경',
|
|
107
|
+
None: '없음',
|
|
108
|
+
Inherited: '상속',
|
|
109
|
+
'From {name}': '{name}에서',
|
|
110
|
+
'from {name}': '{name}에서',
|
|
111
|
+
'set in code: {code}': '코드로 설정: {code}',
|
|
112
|
+
Custom: '사용자 지정',
|
|
113
|
+
'Align left': '왼쪽 정렬',
|
|
114
|
+
'Align center': '가운데 정렬',
|
|
115
|
+
'Align right': '오른쪽 정렬',
|
|
116
|
+
Justify: '양쪽 정렬',
|
|
117
|
+
'This is a component — its styles are set inside it, not here.':
|
|
118
|
+
'컴포넌트입니다. 스타일은 여기가 아니라 컴포넌트 내부에서 설정됩니다.',
|
|
119
|
+
'This element’s style is not written as an object.':
|
|
120
|
+
'이 요소의 style은 객체로 작성되어 있지 않습니다.',
|
|
121
|
+
'source does not match this element': '소스가 이 요소와 일치하지 않습니다',
|
|
122
|
+
'element not found': '요소를 찾을 수 없습니다',
|
|
123
|
+
'Light 300': 'Light 300',
|
|
124
|
+
'Regular 400': 'Regular 400',
|
|
125
|
+
'Medium 500': 'Medium 500',
|
|
126
|
+
'Semibold 600': 'Semibold 600',
|
|
127
|
+
'Bold 700': 'Bold 700',
|
|
128
|
+
'Extrabold 800': 'Extrabold 800',
|
|
129
|
+
'Heading {level}': '제목 {level}',
|
|
130
|
+
Paragraph: '단락',
|
|
131
|
+
List: '목록',
|
|
132
|
+
Table: '표',
|
|
133
|
+
Image: '이미지',
|
|
134
|
+
Box: '상자',
|
|
135
|
+
Alignment: '정렬',
|
|
136
|
+
Emphasis: '강조',
|
|
137
|
+
'Edit on page': '페이지에서 편집',
|
|
138
|
+
Source: '소스',
|
|
139
|
+
Location: '위치',
|
|
140
|
+
'Letter spacing': '자간',
|
|
141
|
+
'Text color': '텍스트 색상',
|
|
142
|
+
'{label} token': '{label} 토큰',
|
|
143
|
+
'Inherited font': '상속된 글꼴',
|
|
144
|
+
'{name} font': '{name} 글꼴',
|
|
145
|
+
'Custom font': '사용자 지정 글꼴',
|
|
146
|
+
Done: '완료',
|
|
147
|
+
'{count} elements print from this line of source': '이 소스 줄에서 {count}개의 요소가 출력됩니다',
|
|
148
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export const BROWSER: Record<string, string> = {
|
|
2
|
+
Documents: '文档',
|
|
3
|
+
Themes: '主题',
|
|
4
|
+
Assets: '资源',
|
|
5
|
+
Unfiled: '未分类',
|
|
6
|
+
Folders: '文件夹',
|
|
7
|
+
Folder: '文件夹',
|
|
8
|
+
'New folder': '新建文件夹',
|
|
9
|
+
'Folder name': '文件夹名称',
|
|
10
|
+
Search: '搜索',
|
|
11
|
+
Menu: '菜单',
|
|
12
|
+
'Change icon': '更换图标',
|
|
13
|
+
'{name} options': '{name} 选项',
|
|
14
|
+
Rename: '重命名',
|
|
15
|
+
Duplicate: '创建副本',
|
|
16
|
+
'Move to': '移动到',
|
|
17
|
+
Delete: '删除',
|
|
18
|
+
'Delete folder': '删除文件夹',
|
|
19
|
+
'Delete document': '删除文档',
|
|
20
|
+
'Document title': '文档标题',
|
|
21
|
+
'Delete "{title}"? This removes docs/{id}/ from disk.':
|
|
22
|
+
'要删除“{title}”吗?这会从磁盘中移除 docs/{id}/。',
|
|
23
|
+
emoji: '表情',
|
|
24
|
+
color: '颜色',
|
|
25
|
+
Newest: '最新',
|
|
26
|
+
Oldest: '最早',
|
|
27
|
+
'A–Z': 'A–Z',
|
|
28
|
+
'Z–A': 'Z–A',
|
|
29
|
+
'Sort: {label}': '排序:{label}',
|
|
30
|
+
'Filter documents': '筛选文档',
|
|
31
|
+
'{size} landscape': '{size} 横向',
|
|
32
|
+
'Nothing matches “{query}”': '没有与“{query}”匹配的结果',
|
|
33
|
+
'Try another word from the title.': '试试标题中的其他词。',
|
|
34
|
+
'Nothing here yet': '这里还没有内容',
|
|
35
|
+
'Ask your agent to write a document, and it appears here.':
|
|
36
|
+
'让你的 agent 写一篇文档,它就会出现在这里。',
|
|
37
|
+
'Drag a document onto this folder, or use Move to on its card.':
|
|
38
|
+
'把文档拖到这个文件夹,或使用卡片上的“移动到”。',
|
|
39
|
+
'No themes yet': '还没有主题',
|
|
40
|
+
'Ask your agent to create a theme from a document you like.':
|
|
41
|
+
'让你的 agent 根据你喜欢的文档创建一个主题。',
|
|
42
|
+
'Theme “{id}” not found.': '未找到主题“{id}”。',
|
|
43
|
+
'Back to themes': '返回主题',
|
|
44
|
+
'Used by': '使用该主题的文档',
|
|
45
|
+
Upload: '上传',
|
|
46
|
+
Project: '项目',
|
|
47
|
+
'This document': '当前文档',
|
|
48
|
+
'Drop files here to upload': '将文件拖放到此处即可上传',
|
|
49
|
+
'No assets yet': '还没有资源',
|
|
50
|
+
'Drop images here or choose Upload.': '将图片拖放到此处,或选择“上传”。',
|
|
51
|
+
'"{name}" already exists in {scope}. Replace it?': '{scope} 中已存在“{name}”,要替换吗?',
|
|
52
|
+
'New file name': '新文件名',
|
|
53
|
+
'Delete "{name}"? This removes the file from disk.': '要删除“{name}”吗?这会从磁盘中移除该文件。',
|
|
54
|
+
' · unused': ' · 未使用',
|
|
55
|
+
'Copy the import line for {name}': '复制 {name} 的 import 语句',
|
|
56
|
+
'Copy import line': '复制 import 语句',
|
|
57
|
+
'Copy import': '复制 import',
|
|
58
|
+
Copied: '已复制',
|
|
59
|
+
'No assets yet. Add images from the Assets page.': '还没有资源。请从“资源”页面添加图片。',
|
|
60
|
+
pages: '页面',
|
|
61
|
+
outline: '大纲',
|
|
62
|
+
assets: '资源',
|
|
63
|
+
'Page {page}': '第 {page} 页',
|
|
64
|
+
'No headings yet.': '还没有标题。',
|
|
65
|
+
'Toggle theme': '切换主题',
|
|
66
|
+
Theme: '主题',
|
|
67
|
+
Light: '浅色',
|
|
68
|
+
Dark: '深色',
|
|
69
|
+
System: '跟随系统',
|
|
70
|
+
Language: '语言',
|
|
71
|
+
'Search documents, sections and actions': '搜索文档、章节和操作',
|
|
72
|
+
Close: '关闭',
|
|
73
|
+
'Command menu': '命令面板',
|
|
74
|
+
Results: '结果',
|
|
75
|
+
'Nothing matches “{query}”.': '没有与“{query}”匹配的结果。',
|
|
76
|
+
Navigate: '导航',
|
|
77
|
+
Open: '打开',
|
|
78
|
+
'Go to': '转到',
|
|
79
|
+
'All documents': '所有文档',
|
|
80
|
+
Appearance: '外观',
|
|
81
|
+
'Light theme': '浅色主题',
|
|
82
|
+
'Dark theme': '深色主题',
|
|
83
|
+
'System theme': '跟随系统主题',
|
|
84
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export const DOC: Record<string, string> = {
|
|
2
|
+
'Back to workspace': '返回工作区',
|
|
3
|
+
'Back to documents': '返回文档列表',
|
|
4
|
+
'Print & share': '打印与分享',
|
|
5
|
+
Edit: '编辑',
|
|
6
|
+
Images: '图片',
|
|
7
|
+
Word: 'Word',
|
|
8
|
+
'True page size, print-ready': '实际页面尺寸,可直接打印',
|
|
9
|
+
'One self-contained file': '单个独立文件',
|
|
10
|
+
'Editable; Word lays out the pages': '可编辑;由 Word 自行排版页面',
|
|
11
|
+
'Pixels at 2×, for slides and chat': '2× 分辨率位图,适合演示文稿和聊天',
|
|
12
|
+
'Vector, text stays text': '矢量图,文字仍保留为文字',
|
|
13
|
+
'This document': '当前文档',
|
|
14
|
+
'Go to page {page}': '转到第 {page} 页',
|
|
15
|
+
Sections: '章节',
|
|
16
|
+
'p. {page}': '第 {page} 页',
|
|
17
|
+
Actions: '操作',
|
|
18
|
+
'Download as {format}': '下载为 {format}',
|
|
19
|
+
'Continuous layout': '连续布局',
|
|
20
|
+
'Two-up layout': '双页布局',
|
|
21
|
+
'Grid layout': '网格布局',
|
|
22
|
+
Fullscreen: '全屏',
|
|
23
|
+
'Leave edit mode': '退出编辑模式',
|
|
24
|
+
'Edit on the page': '在页面上编辑',
|
|
25
|
+
'Close the design panel': '关闭设计面板',
|
|
26
|
+
'Open the design panel': '打开设计面板',
|
|
27
|
+
'Could not load “{id}”.': '无法加载“{id}”。',
|
|
28
|
+
'Search sections, pages, actions and documents': '搜索章节、页面、操作和文档',
|
|
29
|
+
'Page layout': '页面布局',
|
|
30
|
+
Continuous: '连续',
|
|
31
|
+
'Two-up': '双页',
|
|
32
|
+
Grid: '网格',
|
|
33
|
+
'Exit fullscreen (F)': '退出全屏 (F)',
|
|
34
|
+
'Fullscreen (F)': '全屏 (F)',
|
|
35
|
+
Mode: '模式',
|
|
36
|
+
Preview: '预览',
|
|
37
|
+
Design: '设计',
|
|
38
|
+
'Design tokens (D)': '设计变量 (D)',
|
|
39
|
+
Download: '下载',
|
|
40
|
+
All: '全部',
|
|
41
|
+
'This page': '当前页',
|
|
42
|
+
Range: '范围',
|
|
43
|
+
'No such pages — this document has {total}': '没有这些页面,该文档共 {total} 页',
|
|
44
|
+
'Type pages, like 1-3, 6': '输入页码,例如 1-3, 6',
|
|
45
|
+
'All 1 page': '全部 1 页',
|
|
46
|
+
'All {count} pages': '全部 {count} 页',
|
|
47
|
+
'Page {pages} · 1 page': '第 {pages} 页 · 1 页',
|
|
48
|
+
'Pages {pages} · {count} pages': '第 {pages} 页 · 共 {count} 页',
|
|
49
|
+
Pages: '页面',
|
|
50
|
+
'Pages to download': '要下载的页面',
|
|
51
|
+
'Page range': '页面范围',
|
|
52
|
+
'Page number, {total} pages': '页码,共 {total} 页',
|
|
53
|
+
'Go to page': '转到页面',
|
|
54
|
+
'Zoom out': '缩小',
|
|
55
|
+
'Zoom in': '放大',
|
|
56
|
+
'Zoom level, percent': '缩放比例(百分比)',
|
|
57
|
+
'Type a zoom level': '输入缩放比例',
|
|
58
|
+
'Zoom options': '缩放选项',
|
|
59
|
+
'Fit width': '适合宽度',
|
|
60
|
+
'Fit page': '适合页面',
|
|
61
|
+
'Actual size (100%)': '实际大小 (100%)',
|
|
62
|
+
'Link copied': '已复制链接',
|
|
63
|
+
'Copy link': '复制链接',
|
|
64
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export const PANELS: Record<string, string> = {
|
|
2
|
+
Design: '设计',
|
|
3
|
+
'This document has no design const yet — saving writes one':
|
|
4
|
+
'该文档还没有 design 常量,保存时会写入一个',
|
|
5
|
+
Draft: '草稿',
|
|
6
|
+
'Unsaved changes': '未保存的更改',
|
|
7
|
+
'Shuffle preset': '随机应用预设',
|
|
8
|
+
'Reset to defaults': '恢复默认值',
|
|
9
|
+
'Close design panel (D)': '关闭设计面板 (D)',
|
|
10
|
+
Palette: '配色',
|
|
11
|
+
Fonts: '字体',
|
|
12
|
+
'Type scale': '字号',
|
|
13
|
+
Page: '页面',
|
|
14
|
+
Sheet: '纸张',
|
|
15
|
+
Text: '文字',
|
|
16
|
+
Muted: '次要文字',
|
|
17
|
+
Accent: '强调色',
|
|
18
|
+
Rule: '线条',
|
|
19
|
+
Heading: '标题',
|
|
20
|
+
Body: '正文',
|
|
21
|
+
Mono: '等宽',
|
|
22
|
+
Title: '大标题',
|
|
23
|
+
Caption: '图注',
|
|
24
|
+
'System sans': '系统无衬线体',
|
|
25
|
+
'Georgia serif': 'Georgia 衬线体',
|
|
26
|
+
'Times serif': 'Times 衬线体',
|
|
27
|
+
'Body under 12px prints below 9pt — hard to read on paper.':
|
|
28
|
+
'正文小于 12px 时打印出来不到 9pt,在纸上难以阅读。',
|
|
29
|
+
Margin: '页边距',
|
|
30
|
+
Leading: '行高',
|
|
31
|
+
Radius: '圆角',
|
|
32
|
+
'Failed to save': '保存失败',
|
|
33
|
+
'{label} swatch': '{label}色板',
|
|
34
|
+
'Custom (from source)': '自定义(来自源代码)',
|
|
35
|
+
Undo: '撤销',
|
|
36
|
+
Redo: '重做',
|
|
37
|
+
Saved: '已保存',
|
|
38
|
+
'{count} unsaved change': '{count} 项未保存的更改',
|
|
39
|
+
'{count} unsaved changes': '{count} 项未保存的更改',
|
|
40
|
+
Discard: '放弃',
|
|
41
|
+
Save: '保存',
|
|
42
|
+
Saving: '正在保存',
|
|
43
|
+
'Not everything was saved': '部分更改未能保存',
|
|
44
|
+
'Find in document': '在文档中查找',
|
|
45
|
+
Find: '查找',
|
|
46
|
+
'Previous match': '上一个匹配项',
|
|
47
|
+
'Next match': '下一个匹配项',
|
|
48
|
+
'Close search': '关闭搜索',
|
|
49
|
+
'Text formatting': '文字格式',
|
|
50
|
+
'Link address': '链接地址',
|
|
51
|
+
'https://… or #section': 'https://… 或 #章节',
|
|
52
|
+
'Only web, mail, phone, or in-document addresses': '仅支持网址、电子邮件、电话或文档内位置',
|
|
53
|
+
'Apply link': '应用链接',
|
|
54
|
+
Apply: '应用',
|
|
55
|
+
'Remove link': '移除链接',
|
|
56
|
+
Bold: '加粗',
|
|
57
|
+
Italic: '斜体',
|
|
58
|
+
Code: '代码',
|
|
59
|
+
'Already bold — this element’s own style sets it': '已是粗体:该元素自身的样式已设置为粗体',
|
|
60
|
+
Link: '链接',
|
|
61
|
+
'Clear formatting': '清除格式',
|
|
62
|
+
'Select words to format': '请先选中要设置格式的文字',
|
|
63
|
+
'This text is passed in as a string — formatting needs text written in the document':
|
|
64
|
+
'这段文字是以字符串传入的,只有直接写在文档中的文字才能设置格式',
|
|
65
|
+
'The text on the page does not line up with its source, so it cannot be edited here.':
|
|
66
|
+
'页面上的文字与源代码不一致,因此无法在此编辑。',
|
|
67
|
+
'Discarded unsaved edits': '已放弃未保存的编辑',
|
|
68
|
+
'Save failed': '保存失败',
|
|
69
|
+
'Saved to source': '已保存到源代码',
|
|
70
|
+
'{failed} of {total} not saved — {reason}': '{total} 项中有 {failed} 项未保存:{reason}',
|
|
71
|
+
refused: '被拒绝',
|
|
72
|
+
'The document reloaded with new text here — {count} unsaved edit was lost':
|
|
73
|
+
'文档已重新加载,此处文字已更改,{count} 项未保存的编辑已丢失',
|
|
74
|
+
'The document reloaded with new text here — {count} unsaved edits were lost':
|
|
75
|
+
'文档已重新加载,此处文字已更改,{count} 项未保存的编辑已丢失',
|
|
76
|
+
'Type inside one run of text — the markup between runs stays as written.':
|
|
77
|
+
'请在同一段文字内输入,段落之间的标记会保持原样。',
|
|
78
|
+
'source text does not match this element': '源代码中的文字与该元素不匹配',
|
|
79
|
+
'could not read source': '无法读取源代码',
|
|
80
|
+
'This text cannot be edited here.': '这段文字无法在此编辑。',
|
|
81
|
+
'Marked in source — run /apply-comments': '已在源代码中标记,请运行 /apply-comments',
|
|
82
|
+
'Could not add comment': '无法添加注释',
|
|
83
|
+
'Enter to keep · Shift+Enter for a new line · Esc to revert':
|
|
84
|
+
'Enter 保留 · Shift+Enter 换行 · Esc 还原',
|
|
85
|
+
'Double-click or Enter to edit text · Esc to deselect': '双击或按 Enter 编辑文字 · Esc 取消选中',
|
|
86
|
+
'Click to select · double-click to edit · Esc to leave': '单击选中 · 双击编辑 · Esc 退出',
|
|
87
|
+
Element: '元素',
|
|
88
|
+
Close: '关闭',
|
|
89
|
+
'Not editable here.': '无法在此编辑。',
|
|
90
|
+
'Comment for the agent': '给 agent 的注释',
|
|
91
|
+
'make this bold, shorten to one line…': '改为粗体、缩短为一行…',
|
|
92
|
+
'Mark comment': '标记注释',
|
|
93
|
+
Typography: '字体排印',
|
|
94
|
+
Color: '颜色',
|
|
95
|
+
Font: '字体',
|
|
96
|
+
Size: '大小',
|
|
97
|
+
'Size in pixels': '大小(像素)',
|
|
98
|
+
Weight: '粗细',
|
|
99
|
+
'Line height': '行高',
|
|
100
|
+
'Letter spacing in pixels': '字距(像素)',
|
|
101
|
+
Fill: '填色',
|
|
102
|
+
Background: '背景',
|
|
103
|
+
None: '无',
|
|
104
|
+
Inherited: '继承',
|
|
105
|
+
'From {name}': '来自 {name}',
|
|
106
|
+
'from {name}': '来自 {name}',
|
|
107
|
+
'set in code: {code}': '由代码设置:{code}',
|
|
108
|
+
Custom: '自定义',
|
|
109
|
+
'Align left': '左对齐',
|
|
110
|
+
'Align center': '居中对齐',
|
|
111
|
+
'Align right': '右对齐',
|
|
112
|
+
Justify: '两端对齐',
|
|
113
|
+
'This is a component — its styles are set inside it, not here.':
|
|
114
|
+
'这是组件,它的样式在组件内部设置,不在这里。',
|
|
115
|
+
'This element’s style is not written as an object.': '这个元素的 style 不是以对象编写的。',
|
|
116
|
+
'source does not match this element': '源码与这个元素不符',
|
|
117
|
+
'element not found': '找不到元素',
|
|
118
|
+
'Light 300': '细 300',
|
|
119
|
+
'Regular 400': '常规 400',
|
|
120
|
+
'Medium 500': '中等 500',
|
|
121
|
+
'Semibold 600': '半粗 600',
|
|
122
|
+
'Bold 700': '粗 700',
|
|
123
|
+
'Extrabold 800': '特粗 800',
|
|
124
|
+
'Heading {level}': '标题 {level}',
|
|
125
|
+
Paragraph: '段落',
|
|
126
|
+
List: '列表',
|
|
127
|
+
Table: '表格',
|
|
128
|
+
Image: '图片',
|
|
129
|
+
Box: '区块',
|
|
130
|
+
Alignment: '对齐',
|
|
131
|
+
Emphasis: '强调',
|
|
132
|
+
'Edit on page': '在页面上编辑',
|
|
133
|
+
Source: '源码',
|
|
134
|
+
Location: '位置',
|
|
135
|
+
'Letter spacing': '字距',
|
|
136
|
+
'Text color': '文字颜色',
|
|
137
|
+
'{label} token': '{label} token',
|
|
138
|
+
'Inherited font': '继承的字体',
|
|
139
|
+
'{name} font': '{name}字体',
|
|
140
|
+
'Custom font': '自定义字体',
|
|
141
|
+
Done: '完成',
|
|
142
|
+
'{count} elements print from this line of source': '这一行源码输出 {count} 个元素',
|
|
143
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export const BROWSER: Record<string, string> = {
|
|
2
|
+
Documents: '文件',
|
|
3
|
+
Themes: '主題',
|
|
4
|
+
Assets: '素材',
|
|
5
|
+
Unfiled: '未分類',
|
|
6
|
+
Folders: '資料夾',
|
|
7
|
+
Folder: '資料夾',
|
|
8
|
+
'New folder': '新增資料夾',
|
|
9
|
+
'Folder name': '資料夾名稱',
|
|
10
|
+
Search: '搜尋',
|
|
11
|
+
Menu: '選單',
|
|
12
|
+
'Change icon': '更換圖示',
|
|
13
|
+
'{name} options': '{name} 選項',
|
|
14
|
+
Rename: '重新命名',
|
|
15
|
+
Duplicate: '複製',
|
|
16
|
+
'Move to': '移到',
|
|
17
|
+
Delete: '刪除',
|
|
18
|
+
'Delete folder': '刪除資料夾',
|
|
19
|
+
'Delete document': '刪除文件',
|
|
20
|
+
'Document title': '文件標題',
|
|
21
|
+
'Delete "{title}"? This removes docs/{id}/ from disk.':
|
|
22
|
+
'要刪除「{title}」嗎?這會從磁碟移除 docs/{id}/。',
|
|
23
|
+
emoji: '表情符號',
|
|
24
|
+
color: '顏色',
|
|
25
|
+
Newest: '最新',
|
|
26
|
+
Oldest: '最舊',
|
|
27
|
+
'A–Z': 'A–Z',
|
|
28
|
+
'Z–A': 'Z–A',
|
|
29
|
+
'Sort: {label}': '排序:{label}',
|
|
30
|
+
'Filter documents': '篩選文件',
|
|
31
|
+
'{size} landscape': '{size} 橫向',
|
|
32
|
+
'Nothing matches “{query}”': '找不到符合「{query}」的項目',
|
|
33
|
+
'Try another word from the title.': '試試標題裡的其他字詞。',
|
|
34
|
+
'Nothing here yet': '這裡還沒有東西',
|
|
35
|
+
'Ask your agent to write a document, and it appears here.':
|
|
36
|
+
'請你的 agent 寫一份文件,它就會出現在這裡。',
|
|
37
|
+
'Drag a document onto this folder, or use Move to on its card.':
|
|
38
|
+
'把文件拖到這個資料夾,或使用卡片上的「移到」。',
|
|
39
|
+
'No themes yet': '還沒有主題',
|
|
40
|
+
'Ask your agent to create a theme from a document you like.':
|
|
41
|
+
'請你的 agent 從你喜歡的文件建立一個主題。',
|
|
42
|
+
'Theme “{id}” not found.': '找不到主題「{id}」。',
|
|
43
|
+
'Back to themes': '返回主題',
|
|
44
|
+
'Used by': '使用中的文件',
|
|
45
|
+
Upload: '上傳',
|
|
46
|
+
Project: '專案',
|
|
47
|
+
'This document': '這份文件',
|
|
48
|
+
'Drop files here to upload': '將檔案拖放到這裡即可上傳',
|
|
49
|
+
'No assets yet': '還沒有素材',
|
|
50
|
+
'Drop images here or choose Upload.': '將圖片拖放到這裡,或選擇「上傳」。',
|
|
51
|
+
'"{name}" already exists in {scope}. Replace it?': '{scope} 已有「{name}」,要取代嗎?',
|
|
52
|
+
'New file name': '新的檔案名稱',
|
|
53
|
+
'Delete "{name}"? This removes the file from disk.': '要刪除「{name}」嗎?這會從磁碟移除該檔案。',
|
|
54
|
+
' · unused': ' · 未使用',
|
|
55
|
+
'Copy the import line for {name}': '複製 {name} 的 import 語法',
|
|
56
|
+
'Copy import line': '複製 import 語法',
|
|
57
|
+
'Copy import': '複製 import',
|
|
58
|
+
Copied: '已複製',
|
|
59
|
+
'No assets yet. Add images from the Assets page.': '還沒有素材。請從「素材」頁面加入圖片。',
|
|
60
|
+
pages: '頁面',
|
|
61
|
+
outline: '大綱',
|
|
62
|
+
assets: '素材',
|
|
63
|
+
'Page {page}': '第 {page} 頁',
|
|
64
|
+
'No headings yet.': '還沒有標題。',
|
|
65
|
+
'Toggle theme': '切換主題',
|
|
66
|
+
Theme: '主題',
|
|
67
|
+
Light: '淺色',
|
|
68
|
+
Dark: '深色',
|
|
69
|
+
System: '系統',
|
|
70
|
+
Language: '語言',
|
|
71
|
+
'Search documents, sections and actions': '搜尋文件、章節與動作',
|
|
72
|
+
Close: '關閉',
|
|
73
|
+
'Command menu': '指令面板',
|
|
74
|
+
Results: '結果',
|
|
75
|
+
'Nothing matches “{query}”.': '找不到符合「{query}」的項目。',
|
|
76
|
+
Navigate: '移動',
|
|
77
|
+
Open: '開啟',
|
|
78
|
+
'Go to': '前往',
|
|
79
|
+
'All documents': '所有文件',
|
|
80
|
+
Appearance: '外觀',
|
|
81
|
+
'Light theme': '淺色主題',
|
|
82
|
+
'Dark theme': '深色主題',
|
|
83
|
+
'System theme': '系統主題',
|
|
84
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export const DOC: Record<string, string> = {
|
|
2
|
+
'Back to workspace': '返回工作區',
|
|
3
|
+
'Back to documents': '返回文件列表',
|
|
4
|
+
'Print & share': '列印與分享',
|
|
5
|
+
Edit: '編輯',
|
|
6
|
+
Images: '圖片',
|
|
7
|
+
Word: 'Word',
|
|
8
|
+
'True page size, print-ready': '實際頁面尺寸,可直接列印',
|
|
9
|
+
'One self-contained file': '單一獨立檔案',
|
|
10
|
+
'Editable; Word lays out the pages': '可編輯;由 Word 自行排版頁面',
|
|
11
|
+
'Pixels at 2×, for slides and chat': '2× 解析度點陣圖,適合簡報與聊天',
|
|
12
|
+
'Vector, text stays text': '向量圖,文字仍是文字',
|
|
13
|
+
'This document': '這份文件',
|
|
14
|
+
'Go to page {page}': '前往第 {page} 頁',
|
|
15
|
+
Sections: '章節',
|
|
16
|
+
'p. {page}': '第 {page} 頁',
|
|
17
|
+
Actions: '動作',
|
|
18
|
+
'Download as {format}': '下載為 {format}',
|
|
19
|
+
'Continuous layout': '連續版面',
|
|
20
|
+
'Two-up layout': '雙頁版面',
|
|
21
|
+
'Grid layout': '格狀版面',
|
|
22
|
+
Fullscreen: '全螢幕',
|
|
23
|
+
'Leave edit mode': '離開編輯模式',
|
|
24
|
+
'Edit on the page': '在頁面上編輯',
|
|
25
|
+
'Close the design panel': '關閉設計面板',
|
|
26
|
+
'Open the design panel': '開啟設計面板',
|
|
27
|
+
'Could not load “{id}”.': '無法載入「{id}」。',
|
|
28
|
+
'Search sections, pages, actions and documents': '搜尋章節、頁面、動作與文件',
|
|
29
|
+
'Page layout': '頁面版面',
|
|
30
|
+
Continuous: '連續',
|
|
31
|
+
'Two-up': '雙頁',
|
|
32
|
+
Grid: '格狀',
|
|
33
|
+
'Exit fullscreen (F)': '離開全螢幕 (F)',
|
|
34
|
+
'Fullscreen (F)': '全螢幕 (F)',
|
|
35
|
+
Mode: '模式',
|
|
36
|
+
Preview: '預覽',
|
|
37
|
+
Design: '設計',
|
|
38
|
+
'Design tokens (D)': '設計變數 (D)',
|
|
39
|
+
Download: '下載',
|
|
40
|
+
All: '全部',
|
|
41
|
+
'This page': '這一頁',
|
|
42
|
+
Range: '範圍',
|
|
43
|
+
'No such pages — this document has {total}': '沒有這些頁面,這份文件共 {total} 頁',
|
|
44
|
+
'Type pages, like 1-3, 6': '輸入頁碼,例如 1-3, 6',
|
|
45
|
+
'All 1 page': '全部 1 頁',
|
|
46
|
+
'All {count} pages': '全部 {count} 頁',
|
|
47
|
+
'Page {pages} · 1 page': '第 {pages} 頁 · 1 頁',
|
|
48
|
+
'Pages {pages} · {count} pages': '第 {pages} 頁 · 共 {count} 頁',
|
|
49
|
+
Pages: '頁面',
|
|
50
|
+
'Pages to download': '要下載的頁面',
|
|
51
|
+
'Page range': '頁面範圍',
|
|
52
|
+
'Page number, {total} pages': '頁碼,共 {total} 頁',
|
|
53
|
+
'Go to page': '前往頁面',
|
|
54
|
+
'Zoom out': '縮小',
|
|
55
|
+
'Zoom in': '放大',
|
|
56
|
+
'Zoom level, percent': '縮放比例(百分比)',
|
|
57
|
+
'Type a zoom level': '輸入縮放比例',
|
|
58
|
+
'Zoom options': '縮放選項',
|
|
59
|
+
'Fit width': '符合寬度',
|
|
60
|
+
'Fit page': '符合頁面',
|
|
61
|
+
'Actual size (100%)': '實際大小 (100%)',
|
|
62
|
+
'Link copied': '已複製連結',
|
|
63
|
+
'Copy link': '複製連結',
|
|
64
|
+
};
|