Skip to content

Commit 84a4e7b

Browse files
[add] i18n infrastructure for ru, de, zh, ko
- add i18n config block (5 locales + localeConfigs) and locale dropdown - generate translation scaffolding and empty content dirs per locale - translate navbar, footer, sidebar categories and custom UI strings - fill German DocSearch/SearchModal strings missing from bundled set - all five locales (en, ru, de, zh, ko) build successfully
1 parent a5dfe36 commit 84a4e7b

21 files changed

Lines changed: 2913 additions & 1 deletion

File tree

docusaurus.config.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,17 @@ const onAfterDataTransformation = (data) => {
189189

190190
/** @type {import('@docusaurus/types').Config} */
191191
const config = {
192+
i18n: {
193+
defaultLocale: 'en',
194+
locales: ['en', 'ru', 'de', 'zh', 'ko'],
195+
localeConfigs: {
196+
en: { label: 'English', htmlLang: 'en-US' },
197+
ru: { label: 'Русский', htmlLang: 'ru' },
198+
de: { label: 'Deutsch', htmlLang: 'de' },
199+
zh: { label: '简体中文', htmlLang: 'zh-CN' },
200+
ko: { label: '한국어', htmlLang: 'ko' },
201+
},
202+
},
192203
noIndex: false,
193204
title: 'DHTMLX RichText Documentation',
194205
tagline: 'DHTMLX RichText Documentation',
@@ -315,7 +326,12 @@ const config = {
315326
href: 'https://dhtmlx.com/docs/products/dhtmlxRichText/download.shtml',
316327
position: 'right'
317328
}
318-
]
329+
,
330+
{
331+
type: 'localeDropdown',
332+
position: 'right',
333+
},
334+
]
319335
},
320336
footer: {
321337
"style": "dark",

0 commit comments

Comments
 (0)