Skip to content

Commit 06fd01e

Browse files
committed
chore: better translation key
1 parent 1dd645b commit 06fd01e

File tree

10 files changed

+108
-33
lines changed

10 files changed

+108
-33
lines changed

src/@types/translations/en.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,16 @@
299299
"color": "Color",
300300
"addLink": "Add Link",
301301
"link": "Link",
302-
"suggestion": "Suggestion",
303-
"turninto": "Turn into",
304-
"paragraph": "Paragraph",
305-
"heading1": "Heading 1",
306-
"heading2": "Heading 2",
307-
"heading3": "Heading 3"
302+
"h1": "Heading 1",
303+
"h2": "Heading 2",
304+
"h3": "Heading 3",
305+
"alignLeft": "Align left",
306+
"alignRight": "Align right",
307+
"alignCenter": "Align center",
308+
"moreOptions": "More options",
309+
"font": "Font",
310+
"suggestions": "Suggestions",
311+
"turnInto": "Turn into"
308312
},
309313
"tooltip": {
310314
"lightMode": "Switch to Light mode",

src/@types/translations/es-VE.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,17 @@
223223
"highlight": "Resaltado",
224224
"color": "Color",
225225
"addLink": "Añadir enlace",
226-
"link": "Enlace"
226+
"link": "Enlace",
227+
"h1": "Encabezado 1",
228+
"h2": "Encabezado 2",
229+
"h3": "Encabezado 3",
230+
"alignLeft": "Alinear a la izquierda",
231+
"alignRight": "Alinear a la derecha",
232+
"alignCenter": "Alinear al centro",
233+
"moreOptions": "Más opciones",
234+
"font": "Fuente",
235+
"suggestions": "Sugerencias",
236+
"turnInto": "Convertir en"
227237
},
228238
"tooltip": {
229239
"lightMode": "Cambiar a modo Claro",
@@ -1547,4 +1557,4 @@
15471557
"betaTooltip": "Actualmente solo admitimos la búsqueda de páginas.",
15481558
"fromTrashHint": "De la papelera"
15491559
}
1550-
}
1560+
}

src/@types/translations/eu-ES.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,4 +600,4 @@
600600
"deleteContentTitle": "Ziur {pageType} ezabatu nahi duzula?",
601601
"deleteContentCaption": "{pageType} hau ezabatzen baduzu, zaborrontzitik leheneratu dezakezu."
602602
}
603-
}
603+
}

src/@types/translations/fr-CA.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,17 @@
171171
"highlight": "Surligner",
172172
"color": "Couleur",
173173
"addLink": "Ajouter un lien",
174-
"link": "Lien"
174+
"link": "Lien",
175+
"h1": "Titre 1",
176+
"h2": "Titre 2",
177+
"h3": "Titre 3",
178+
"alignLeft": "Aligner à gauche",
179+
"alignRight": "Aligner à droite",
180+
"alignCenter": "Aligner le centre",
181+
"moreOptions": "Plus d'options",
182+
"font": "Police",
183+
"suggestions": "Suggestions",
184+
"turnInto": "Devenir"
175185
},
176186
"tooltip": {
177187
"lightMode": "Passer en mode clair",
@@ -1256,4 +1266,4 @@
12561266
"userIcon": "Icône utilisateur"
12571267
},
12581268
"noLogFiles": "Il n'y a pas de log"
1259-
}
1269+
}

src/@types/translations/fr-FR.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,17 @@
292292
"highlight": "Surligner",
293293
"color": "Couleur",
294294
"addLink": "Ajouter un lien",
295-
"link": "Lien"
295+
"link": "Lien",
296+
"h1": "Titre 1",
297+
"h2": "Titre 2",
298+
"h3": "Titre 3",
299+
"alignLeft": "Aligner à gauche",
300+
"alignRight": "Aligner à droite",
301+
"alignCenter": "Aligner le centre",
302+
"moreOptions": "Plus d'options",
303+
"font": "Police",
304+
"suggestions": "Suggestions",
305+
"turnInto": "Devenir"
296306
},
297307
"tooltip": {
298308
"lightMode": "Passer en mode clair",
@@ -2945,4 +2955,4 @@
29452955
"permissionDenied": "Aucune autorisation d'ouvrir ce fichier",
29462956
"unknownError": "Échec de l'ouverture du fichier"
29472957
}
2948-
}
2958+
}

src/@types/translations/ja-JP.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,17 @@
252252
"highlight": "ハイライト",
253253
"color": "カラー",
254254
"addLink": "リンクを追加",
255-
"link": "リンク"
255+
"link": "リンク",
256+
"h1": "見出し1",
257+
"h2": "見出し2",
258+
"h3": "見出し3",
259+
"alignLeft": "テキストを左揃え",
260+
"alignCenter": "テキストを中央揃え",
261+
"alignRight": "テキストを右揃え",
262+
"moreOptions": "More options",
263+
"font": "フォント",
264+
"suggestions": "提案",
265+
"turnInto": "変換"
256266
},
257267
"tooltip": {
258268
"lightMode": "ライトモードに切り替える",
@@ -2546,4 +2556,4 @@
25462556
"zoomIn": "ズームイン",
25472557
"zoomOut": "ズームアウト"
25482558
}
2549-
}
2559+
}

src/@types/translations/ko-KR.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,18 @@
297297
"highlight": "강조",
298298
"color": "색상",
299299
"addLink": "링크 추가",
300-
"link": "링크"
300+
"link": "링크",
301+
"h1": "헤딩 1",
302+
"h2": "헤딩 2",
303+
"h3": "헤딩 3",
304+
"alignLeft": "왼쪽 정렬",
305+
"alignRight": "오른쪽 정렬",
306+
"alignCenter": "가운데 정렬",
307+
"textAlign": "텍스트 정렬",
308+
"moreOptions": "더 많은 옵션",
309+
"font": "글꼴",
310+
"suggestions": "제안",
311+
"turnInto": "변환"
301312
},
302313
"tooltip": {
303314
"lightMode": "라이트 모드로 전환",
@@ -3072,4 +3083,4 @@
30723083
"embedVideoLinkPlaceholder": "여기에 비디오 링크를 붙여넣으세요.",
30733084
"videoSupported": "지원되는 서비스: YouTube, Vimeo 등.",
30743085
"copiedVideoLink": "비디오 원본 링크가 클립보드에 복사되었습니다"
3075-
}
3086+
}

src/@types/translations/zh-CN.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,17 @@
277277
"highlight": "高亮",
278278
"color": "颜色",
279279
"addLink": "添加链接",
280-
"link": "关联"
280+
"link": "关联",
281+
"h1": "一级标题",
282+
"h2": "二级标题",
283+
"h3": "三级标题",
284+
"alignLeft": "文本居左对齐",
285+
"alignCenter": "文本居中对齐",
286+
"alignRight": "文本居右对齐",
287+
"moreOptions": "更多选项",
288+
"font": "字体",
289+
"suggestions": "建议",
290+
"turnInto": "变成"
281291
},
282292
"tooltip": {
283293
"lightMode": "切换到亮色模式",
@@ -1889,4 +1899,4 @@
18891899
"yesterday": "昨天",
18901900
"today": "今天"
18911901
}
1892-
}
1902+
}

src/@types/translations/zh-TW.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,17 @@
248248
"highlight": "醒目提示",
249249
"color": "顏色",
250250
"addLink": "新增連結",
251-
"link": "連結"
251+
"link": "連結",
252+
"h1": "標題 1",
253+
"h2": "標題 2",
254+
"h3": "標題 3",
255+
"alignLeft": "左對齊",
256+
"alignRight": "右對齊",
257+
"alignCenter": "中對齊",
258+
"moreOptions": "更多選項",
259+
"font": "字型",
260+
"suggestions": "建議",
261+
"turnInto": "變成"
252262
},
253263
"tooltip": {
254264
"lightMode": "切換至亮色模式",
@@ -1545,4 +1555,4 @@
15451555
"betaLabel": "BETA",
15461556
"betaTooltip": "目前我們只支援搜尋頁面"
15471557
}
1548-
}
1558+
}

src/components/editor/components/toolbar/selection-toolbar/actions/TurnInto.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,76 +46,76 @@ const blockOptions: BlockOption[] = [
4646
{
4747
type: 'heading1',
4848
icon: Heading1,
49-
label: 'document.slashMenu.name.heading1',
49+
label: 'toolbar.h1',
5050
blockType: BlockType.HeadingBlock,
5151
data: { level: 1 },
5252
group: 'text',
5353
},
5454
{
5555
type: 'heading2',
5656
icon: Heading2,
57-
label: 'document.slashMenu.name.heading2',
57+
label: 'toolbar.h2',
5858
blockType: BlockType.HeadingBlock,
5959
data: { level: 2 },
6060
group: 'text',
6161
},
6262
{
6363
type: 'heading3',
6464
icon: Heading3,
65-
label: 'document.slashMenu.name.heading3',
65+
label: 'toolbar.h3',
6666
blockType: BlockType.HeadingBlock,
6767
data: { level: 3 },
6868
group: 'text',
6969
},
7070
{
7171
type: 'bulleted',
7272
icon: BulletedListSvg,
73-
label: 'toolbar.bulletList',
73+
label: 'editor.bulletedListShortForm',
7474
blockType: BlockType.BulletedListBlock,
7575
group: 'list',
7676
},
7777
{
7878
type: 'numbered',
7979
icon: NumberedListSvg,
80-
label: 'editor.numberedList',
80+
label: 'editor.numberedListShortForm',
8181
blockType: BlockType.NumberedListBlock,
8282
group: 'list',
8383
},
8484
{
8585
type: 'toggle',
8686
icon: ToggleListIcon,
87-
label: 'document.slashMenu.name.toggleList',
87+
label: 'editor.toggleListShortForm',
8888
blockType: BlockType.ToggleListBlock,
8989
group: 'toggle',
9090
},
9191
{
9292
type: 'toggleHeading1',
9393
icon: ToggleHeading1Icon,
94-
label: 'document.slashMenu.name.toggleHeading1',
94+
label: 'editor.toggleHeading1ShortForm',
9595
blockType: BlockType.ToggleListBlock,
9696
data: { level: 1 },
9797
group: 'toggle',
9898
},
9999
{
100100
type: 'toggleHeading2',
101101
icon: ToggleHeading2Icon,
102-
label: 'document.slashMenu.name.toggleHeading2',
102+
label: 'editor.toggleHeading2ShortForm',
103103
blockType: BlockType.ToggleListBlock,
104104
data: { level: 2 },
105105
group: 'toggle',
106106
},
107107
{
108108
type: 'toggleHeading3',
109109
icon: ToggleHeading3Icon,
110-
label: 'document.slashMenu.name.toggleHeading3',
110+
label: 'editor.toggleHeading3ShortForm',
111111
blockType: BlockType.ToggleListBlock,
112112
data: { level: 3 },
113113
group: 'toggle',
114114
},
115115
{
116116
type: 'quote',
117117
icon: QuoteSvg,
118-
label: 'toolbar.quote',
118+
label: 'editor.quote',
119119
blockType: BlockType.QuoteBlock,
120120
group: 'other',
121121
},
@@ -305,7 +305,7 @@ function TurnInfo() {
305305
userSelect: 'none',
306306
}}
307307
>
308-
{t('toolbar.suggestion', { defaultValue: 'Suggestion' })}
308+
{t('toolbar.suggestions', { defaultValue: 'Suggestions' })}
309309
</Typography>
310310
{suggestionOptions.map((option, index) => (
311311
<MenuItem
@@ -355,7 +355,7 @@ function TurnInfo() {
355355
userSelect: 'none',
356356
}}
357357
>
358-
{t('document.plugins.optionAction.turnInto', { defaultValue: 'Turn into' })}
358+
{t('toolbar.turnInto', { defaultValue: 'Turn into' })}
359359
</Typography>
360360
{turnIntoOptions.map((option, index) => (
361361
<MenuItem

0 commit comments

Comments
 (0)