Skip to content

Commit 7bea8e0

Browse files
[fix] translate missed code comments in i18n
- translated English comments left inside code blocks across ru/de/zh/ko locales (mostly inline `// ...` comments missed during article translation) - covers encoder labels, init/destroy/import snippets, toolbar button option comments, locale notes, CSS comments, etc. - preserved code, API names, string literals, identifiers and comment markers; value-enumeration comments (font/size lists, emoji code example) intentionally kept in English - English source docs/ untouched
1 parent 8ad402d commit 7bea8e0

56 files changed

Lines changed: 352 additions & 352 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

i18n/de/docusaurus-plugin-content-docs/current/api/config/default-styles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description: In der Dokumentation der DHTMLX JavaScript RichText-Bibliothek erfa
1414

1515
~~~jsx {}
1616
defaultStyles?: {
17-
"*"?: { // affects all blocks, allowing you to set common properties for all of these blocks
17+
"*"?: { // betrifft alle Blöcke und ermöglicht es, gemeinsame Eigenschaften für all diese Blöcke festzulegen
1818
"font-family"?: string; // "Roboto"| "Arial" | "Georgia" | "Tahoma" | "Times New Roman" | "Verdana"
1919
"font-size"?: string; // "12px" | "14px" | "16px" | "18px" | "20px" | "24px" | "28px" | "32px" | "36px"
2020
color?: string;

i18n/de/docusaurus-plugin-content-docs/current/api/config/triggers.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const editor = new Richtext("#root", {
130130
action: item => editor.insertValue(`<span>${emojiFromCode(item.code)} </span>`)
131131
}
132132
],
133-
// render the emoji itself (not just its label) in the dropdown
133+
// das Emoji selbst (nicht nur seine Beschriftung) im Dropdown anzeigen
134134
triggerTemplate: template(({ data }) => `${emojiFromCode(data.code)} ${data.label}`)
135135
});
136136

@@ -146,12 +146,12 @@ Wenn der `data`-Parameter eine Funktion ist, sind Sie nicht auf den eingebauten
146146
~~~jsx {18-26,31-33,41}
147147
const { template, Richtext } = richtext;
148148

149-
// header items carry no `code` field; emoji items include one
149+
// Header-Elemente haben kein `code`-Feld; Emoji-Elemente enthalten eines
150150
const emoji = [
151-
{ id: "$smileys", label: "Smileys", category: 1 }, // category
151+
{ id: "$smileys", label: "Smileys", category: 1 }, // Kategorie
152152
{ id: "grinning", label: "grinning", code: "1F600", category: 1 },
153153
{ id: "smile", label: "smile", code: "1F604", category: 1 },
154-
{ id: "$animals", label: "Animals", category: 2 }, // category
154+
{ id: "$animals", label: "Animals", category: 2 }, // Kategorie
155155
{ id: "dog", label: "dog", code: "1F436", category: 2 },
156156
{ id: "cat", label: "cat", code: "1F431", category: 2 }
157157
];
@@ -166,15 +166,15 @@ const editor = new Richtext("#root", {
166166
item.label.toLowerCase().startsWith(query.toLowerCase().trim())
167167
);
168168
const categories = new Set(matched.map(item => item.category));
169-
// keep matching emoji plus the headers of categories that still match
169+
// passende Emojis behalten plus die Überschriften der Kategorien, die noch Treffer enthalten
170170
return emoji.filter(item =>
171171
item.code ? matched.includes(item) : categories.has(item.category)
172172
);
173173
},
174174
action: item => editor.insertValue(`<span>${emojiFromCode(item.code)} </span>`)
175175
}
176176
],
177-
// render emoji rows normally and category headers in bold
177+
// Emoji-Zeilen normal und Kategorieüberschriften fett darstellen
178178
triggerTemplate: template(({ data }) =>
179179
data.code ? `${emojiFromCode(data.code)} ${data.label}` : `<b>${data.label}</b>`
180180
)
@@ -184,7 +184,7 @@ function emojiFromCode(code) {
184184
return String.fromCodePoint(parseInt(code, 16));
185185
}
186186

187-
// headers have no `code` — ignore picks on them so they are never inserted
187+
// Überschriften haben kein `code` — Auswahl auf ihnen ignorieren, damit sie nie eingefügt werden
188188
editor.api.intercept("insert-token", ({ data }) => !!data.code);
189189
~~~
190190

@@ -193,11 +193,11 @@ editor.api.intercept("insert-token", ({ data }) => !!data.code);
193193
Sie können `action` verwenden, um ein Slash-Befehlsmenü zu erstellen (wie `/` in Notion oder Slack). Speichern Sie einen Befehlsnamen in der `id` jedes Elements, seine Optionen in einem benutzerdefinierten `config`-Feld, und lassen Sie den Callback ihn mit [`api.exec`](api/internal/exec.md) ausführen:
194194

195195
~~~jsx {13}
196-
// each item stores an api.exec action name in `id` and its parameters in `config`
196+
// jedes Element speichert einen api.exec-Aktionsnamen in `id` und seine Parameter in `config`
197197
const commands = [
198198
{ id: "set-text-style", label: "Heading 1", config: { tag: "h1" } },
199199
{ id: "insert-list", label: "Bulleted list", config: { type: "bulleted" } },
200-
{ id: "insert-line", label: "Divider" } // no config → `|| {}` applies
200+
{ id: "insert-line", label: "Divider" } // keine Konfiguration → `|| {}` wird angewendet
201201
];
202202

203203
const editor = new richtext.Richtext("#root", {

i18n/de/docusaurus-plugin-content-docs/current/api/events/show-popup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ editor.api.on("show-popup", (obj) => {
4444
console.log(obj);
4545
console.log("The popup was shown/hidden");
4646
});
47-
// show-popup the text to the left
47+
// show-popup den Text links anzeigen
4848
editor.api.exec("show-popup", {
4949
type: "link"
5050
});

i18n/de/docusaurus-plugin-content-docs/current/api/internal/set-next.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ api.setNext(next: any): void;
2424

2525
~~~jsx {10-11}
2626
const server = "https://some-backend-url";
27-
// Assume that you have a custom server service class named someServerService
27+
// Angenommen, Sie haben eine benutzerdefinierte Server-Service-Klasse namens someServerService
2828
const someServerService = new ServerDataService(server);
2929

3030
fetch(server + "/data").then((res) => res.json()).then((data) => {
3131
const editor = new richtext.Richtext("#root", {
3232
value: data
3333
});
3434

35-
// Integrate someServerService into the Event Bus order of widget
35+
// someServerService in die Event Bus-Reihenfolge des Widgets integrieren
3636
editor.api.setNext(someServerService);
3737
});
3838
~~~

i18n/de/docusaurus-plugin-content-docs/current/api/methods/insert-value.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ insertValue: (value: string, encoder?: any): void;
2424
Den benötigten Encoder erhalten Sie auf folgende Weise:
2525

2626
```jsx
27-
const fromTextEncoder = richtext.text.fromText; // text encoder
28-
const fromHTMLEncoder = richtext.html.fromHTML; // html encoder
29-
const fromMarkdownEncoder = richtext.markdown.fromMarkdown; // markdown encoder
27+
const fromTextEncoder = richtext.text.fromText; // Text-Encoder
28+
const fromHTMLEncoder = richtext.html.fromHTML; // HTML-Encoder
29+
const fromMarkdownEncoder = richtext.markdown.fromMarkdown; // Markdown-Encoder
3030
```
3131

3232
### Beispiel {#example}
3333

3434
~~~jsx {6}
3535
const editor = new richtext.Richtext("#root", {
36-
// configuration properties
36+
// Konfigurationseigenschaften
3737
});
3838

39-
// inserts an HTML link with custom attributes at the cursor position
39+
// fügt einen HTML-Link mit benutzerdefinierten Attributen an der Cursorposition ein
4040
editor.insertValue("<a href=\"https://example.com\" title=\"Example\">link</a>");
4141
~~~
4242

i18n/de/docusaurus-plugin-content-docs/current/guides/localization.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Standardmäßig verwendet RichText das englische Locale:
1515
~~~jsx
1616
const en = {
1717
richtext: {
18-
// buttons/actions
18+
// Schaltflächen/Aktionen
1919
Undo: "Undo",
2020
Redo: "Redo",
2121
Style: "Style",
@@ -46,7 +46,7 @@ const en = {
4646
"Classic mode": "Classic mode",
4747
"Document mode": "Document mode",
4848

49-
// menubar exclusive options
49+
// exklusive Menüleisten-Optionen
5050
File: "File",
5151
Import: "Import",
5252
Export: "Export",
@@ -76,11 +76,11 @@ const en = {
7676
Justified: "Justified",
7777
"Keyboard shortcuts": "Keyboard shortcuts",
7878

79-
// clipboard
79+
// Zwischenablage
8080
"Operation failed. Please check your browser's clipboard permissions.":
8181
"Operation failed. Please check your browser's clipboard permissions.",
8282

83-
// block style dropdown
83+
// Dropdown für Blockstile
8484
Heading: "Heading",
8585
Quote: "Quote",
8686
Paragraph: "Paragraph",
@@ -90,21 +90,21 @@ const en = {
9090
normal: "normal",
9191
default: "default",
9292

93-
// lists
93+
// Listen
9494
"Bulleted list": "Bulleted list",
9595
"Numbered list": "Numbered list",
9696

97-
// links
97+
// Links
9898
"Enter text to display": "Enter text to display",
9999
"Paste link": "Paste link",
100100
"Link copied to clipboard": "Link copied to clipboard",
101101

102-
// shortcut groups
102+
// Tastenkürzel-Gruppen
103103
"Text formatting": "Text formatting",
104104
Editing: "Editing",
105105
"Special actions": "Special actions",
106106

107-
// colors
107+
// Farben
108108
Black: "Black",
109109
Gray: "Gray",
110110
White: "White",
@@ -119,7 +119,7 @@ const en = {
119119
Indigo: "Indigo",
120120
Magenta: "Magenta",
121121

122-
// shades
122+
// Farbabstufungen
123123
"Light gray": "Light gray",
124124
"Medium gray": "Medium gray",
125125
"Dark gray": "Dark gray",
@@ -167,7 +167,7 @@ RichText wird auch mit den eingebauten deutschen (`de`) und chinesischen (`cn`)
167167
~~~jsx
168168
const de = {
169169
richtext: {
170-
// buttons/actions
170+
// Schaltflächen/Aktionen
171171
Undo: "Rückgängig",
172172
Redo: "Wiederholen",
173173
Style: "Stil",
@@ -198,7 +198,7 @@ const de = {
198198
"Classic mode": "Klassischer Modus",
199199
"Document mode": "Dokumentenmodus",
200200

201-
// menubar exclusive options
201+
// exklusive Menüleisten-Optionen
202202
File: "Datei",
203203
Import: "Importieren",
204204
Export: "Exportieren",
@@ -228,11 +228,11 @@ const de = {
228228
Justified: "Blocksatz",
229229
"Keyboard shortcuts": "Tastenkürzel",
230230

231-
// clipboard
231+
// Zwischenablage
232232
"Operation failed. Please check your browser's clipboard permissions.":
233233
"Operation fehlgeschlagen. Bitte überprüfen Sie die Berechtigungen für die Zwischenablage Ihres Browsers.",
234234

235-
// block style dropdown
235+
// Dropdown für Blockstile
236236
Heading: "Überschrift",
237237
Quote: "Zitat",
238238
Paragraph: "Absatz",
@@ -242,21 +242,21 @@ const de = {
242242
normal: "normal",
243243
default: "standard",
244244

245-
// lists
245+
// Listen
246246
"Bulleted list": "Liste mit Aufzählungszeichen",
247247
"Numbered list": "Nummerierte Liste",
248248

249-
// links
249+
// Links
250250
"Enter text to display": "Text zum Anzeigen eingeben",
251251
"Paste link": "Link einfügen",
252252
"Link copied to clipboard": "Link in die Zwischenablage kopiert",
253253

254-
// shortcut groups
254+
// Tastenkürzel-Gruppen
255255
"Text formatting": "Textformatierung",
256256
Editing: "Bearbeitung",
257257
"Special actions": "Spezielle Aktionen",
258258

259-
// colors
259+
// Farben
260260
Black: "Schwarz",
261261
Gray: "Grau",
262262
White: "Weiß",
@@ -271,7 +271,7 @@ const de = {
271271
Indigo: "Indigo",
272272
Magenta: "Magenta",
273273

274-
// shades
274+
// Farbabstufungen
275275
"Light gray": "Hellgrau",
276276
"Medium gray": "Mittelgrau",
277277
"Dark gray": "Dunkelgrau",
@@ -316,7 +316,7 @@ const de = {
316316
~~~jsx
317317
const cn = {
318318
richtext: {
319-
// buttons/actions
319+
// Schaltflächen/Aktionen
320320
Undo: "撤销",
321321
Redo: "重做",
322322
Style: "样式",
@@ -347,7 +347,7 @@ const cn = {
347347
"Classic mode": "经典模式",
348348
"Document mode": "文档模式",
349349

350-
// menubar exclusive options
350+
// exklusive Menüleisten-Optionen
351351
File: "文件",
352352
Import: "导入",
353353
Export: "导出",
@@ -377,11 +377,11 @@ const cn = {
377377
Justified: "两端对齐",
378378
"Keyboard shortcuts": "键盘快捷键",
379379

380-
// clipboard
380+
// Zwischenablage
381381
"Operation failed. Please check your browser's clipboard permissions.":
382382
"操作失败。请检查浏览器的剪贴板权限。",
383383

384-
// block style dropdown
384+
// Dropdown für Blockstile
385385
Heading: "标题",
386386
Quote: "引用",
387387
Paragraph: "段落",
@@ -391,21 +391,21 @@ const cn = {
391391
normal: "普通的",
392392
default: "默认",
393393

394-
// lists
394+
// Listen
395395
"Bulleted list": "项目符号列表",
396396
"Numbered list": "编号列表",
397397

398-
// links
398+
// Links
399399
"Enter text to display": "输入要显示的文本",
400400
"Paste link": "粘贴链接",
401401
"Link copied to clipboard": "链接已复制到剪贴板",
402402

403-
// shortcut groups
403+
// Tastenkürzel-Gruppen
404404
"Text formatting": "文本格式化",
405405
Editing: "编辑",
406406
"Special actions": "特殊操作",
407407

408-
// colors
408+
// Farben
409409
Black: "黑色",
410410
Gray: "灰色",
411411
White: "白色",
@@ -420,7 +420,7 @@ const cn = {
420420
Indigo: "靛蓝色",
421421
Magenta: "洋红色",
422422

423-
// shades
423+
// Farbabstufungen
424424
"Light gray": "浅灰色",
425425
"Medium gray": "中灰色",
426426
"Dark gray": "深灰色",
@@ -470,7 +470,7 @@ Erstellen Sie ein Locale-Objekt (oder modifizieren Sie ein eingebautes) mit Übe
470470
~~~jsx
471471
const editor = new richtext.Richtext("#root", {
472472
locale: richtext.locales.de
473-
// other configuration properties
473+
// weitere Konfigurationseigenschaften
474474
});
475475
~~~
476476

0 commit comments

Comments
 (0)