Skip to content

Enable de, fr, and nl docs locales - #38

Merged
zzzoryn merged 10 commits into
v1.0.0-beta.4from
cursor/tsk-193-enable-locales
Dec 2, 2026
Merged

zzzoryn merged 10 commits into
v1.0.0-beta.4from
cursor/tsk-193-enable-locales

Conversation

@zzzoryn

@zzzoryn zzzoryn commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Enable German, French, and Dutch on the docs site.

Base is cursor/tsk-193-admin-account (PR #37). After #36 and #37 merge, retarget this PR to v1.0.0-beta.4.

Changes

  • docusaurus.config.ts: add de, fr, nl to i18n.locales with localeConfigs (Deutsch / Français / Nederlands; htmlLang de / fr / nl; paths /de/, /fr/, /nl/). ru stays at /, en at /en/.
  • Navbar localeDropdown lists all five locales. Version dropdown (v1.0) works for the new locales. No local search plugin is configured.
  • scripts/sync-docs-version.mjs: docs:check / docs:sync always cover en/de/fr/nl current to version-v1.0 pairs. docs:check fails when a locale's current or version-v1.0 folder is missing, and when a locale's file list differs from English in either tree.
  • README.md: document the five locales and that feature names follow the product UI in ru/en/de/fr/nl. No separate CONTRIBUTING file in this repo.
  • CI/deploy already run npm run build, which builds every locale from config, so there is no workflow locale list to update.

Checks

  • npm run docs:check - pass (also verified to fail with a missing locale current folder, a missing page, and a version-v1.0 file-list mismatch vs EN)
  • npm run build (ru + en + de + fr + nl) - pass
Open in Web Open in Cursor 

@zzzoryn zzzoryn left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of head 64ca741 (base cursor/tsk-193-admin-account = #37). Verdict: the change itself is correct, but this PR must not be merged until the blockers from #36 and #37 are fixed, because this is the PR that makes them public.

What I checked (#38 merged onto v1.0.0-beta.4 cc88c01 locally):

  • CI build green on 64ca741; draft; mergeable clean. The diff against #37 is only docusaurus.config.ts, scripts/sync-docs-version.mjs and README.md. #36 (c62d00e) and #37 (431df0e) heads are unchanged since my reviews there.
  • docusaurus.config.ts:66-96: locales and localeConfigs are correct - labels Deutsch / Français / Nederlands, htmlLang de/fr/nl, direction: 'ltr', paths /de/, /fr/, /nl/; ru stays at /, en at /en/. onBrokenLinks/onBrokenAnchors/onBrokenMarkdownLinks stay 'throw'.
  • Full npm run build (prebuild docs:check + 5 locales) passes.
  • Built output: <html lang="fr" dir="ltr">; each page has hreflang alternates for ru/en/de/fr/nl plus x-default -> ru, and a canonical on its own locale; build/{de,fr,nl}/sitemap.xml exist with 47 URLs each, same as ru; the locale dropdown lists all five.
  • README.md: public-safe - no internal task numbers or trackers, no comparisons with other products, hyphens only.

Blockers (not in this diff, but enabling the locales here exposes them):

  1. From #36: src/theme/PlanBadges/index.tsx:57 falls back to Russian for every locale except en. With this PR every de/fr/nl page shows "Тариф / Бесплатный / Предприятие" (checked in build/de/workspace/roles/index.html). Also i18n/nl/code.json:186 (informal "je" on the 404 page).
  2. From #37: 5 pages in de/fr/nl are translated from the pre-#35 EN (getting-started/first-setup.md, install/free.md, install/email.md, install/troubleshooting.md, security/keys.md) and describe the old first-run flow, plus the UI-string and dash fixes listed in the #37 review. With this PR they go live at /de/, /fr/, /nl/.

Non-blocking:

  • scripts/sync-docs-version.mjs:25-30: the description says docs:check now requires the locales, but listFiles() returns [] for a missing folder, so if both current and version-v1.0 of a locale are missing the check still passes (tested: removing both nl folders -> exit 0). For a missing page Docusaurus then silently serves the Russian default-locale page under /nl/. Suggest failing when current of a configured locale does not exist, and comparing each locale's file list with i18n/en/.../current.
  • README.md:124 still says "Feature names follow the product UI in Russian and English"; with five locales that should cover de/fr/nl too (the UI wording of each locale).
  • FYI for after merge (outside this repo): the app's packages/i18n/src/locales/manifest.json has docsPathPrefix: "/en" for de/fr/nl, so the app will keep linking German/French/Dutch users to /en/ until that is switched.
  • The PR title starts with an internal task number; please drop it from the squash title.

];

for (const locale of OPTIONAL_LOCALES) {
for (const locale of TRANSLATED_LOCALES) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A missing locale folder pair still passes docs:check (listFiles() returns [] for a missing dir; removing both nl folders gives exit 0). Suggest an explicit fs.existsSync(src) failure for these locales.

@cursor cursor Bot changed the title TSK-193: enable de/fr/nl docs locales Enable de, fr, and nl docs locales Dec 1, 2026
cursoragent and others added 6 commits December 1, 2026 08:41
Generate and translate Docusaurus UI strings for German, French, and Dutch
without publishing those locales yet. Extend docs:check to sync optional
locale current/version-v1.0 content folders when they exist.

Co-authored-by: Alexander Zorin <zzzoryn@users.noreply.github.com>
Add de/fr/nl plan badge copy with app tier names (Free/Gratuit/Gratis,
Enterprise) and fall back to English for unknown locales. Use formal
Dutch "u" on the NotFound page string.

Co-authored-by: Alexander Zorin <zzzoryn@users.noreply.github.com>
Add TSK-193 batch 1 page translations for Administration and Account
sections, sync version-v1.0 copies, and keep UI labels aligned with the
Okkey web locale files.

Co-authored-by: Alexander Zorin <zzzoryn@users.noreply.github.com>
Complete TSK-193 batch 2: translate all remaining English docs
(install, getting-started, workspace, items, tools, apps, security,
intro, plans, monitoring, capsules) plus category metadata into German,
French, and Dutch. Sync version-v1.0 copies. Keep UI labels aligned with
app locales; leave docusaurus locales disabled.

Co-authored-by: Alexander Zorin <zzzoryn@users.noreply.github.com>
…w nits

Re-translate getting-started/first-setup, install/email, install/free,
install/troubleshooting and security/keys from the v1.0.0-beta.4 English
source (setup wizard at /setup, one-time setup code, presets in the Mail
step). Align quoted UI labels with packages/i18n web locales (Tresor-
Einstellungen, Paramètres du coffre, Auswahl abbrechen, Dateien in
Einträgen zulassen, Die neuen Passwörter stimmen nicht überein, Onbeperkte
opslagruimte, nein/non/nee, 1 Minuten/1 minuten). Replace em and en dashes
with hyphens in docs text. Sync version-v1.0 copies.

Co-authored-by: Alexander Zorin <zzzoryn@users.noreply.github.com>
Replace the plural "1 Minuten" / "1 minuten" idle-timeout examples with
correct singular "1 Minute" / "1 minuut" in current and version-v1.0.

Co-authored-by: Alexander Zorin <zzzoryn@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/tsk-193-admin-account branch from 361ba3e to f5dfdde Compare December 1, 2026 08:43
cursoragent and others added 3 commits December 1, 2026 08:43
Add German, French, and Dutch to i18n.locales so the navbar
locale dropdown, docs:check sync pairs, and full builds cover
all five locales.

Co-authored-by: Alexander Zorin <zzzoryn@users.noreply.github.com>
Co-authored-by: Alexander Zorin <zzzoryn@users.noreply.github.com>
Make docs:check fail when a translated locale lacks current or
version-v1.0, and compare each locale's file list with English for both
trees so missing pages cannot slip through silently.

Co-authored-by: Alexander Zorin <zzzoryn@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/tsk-193-enable-locales branch from 2aae0f4 to 9c5d8cc Compare December 1, 2026 08:45

@zzzoryn zzzoryn left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review of head 9c5d8cc (base cursor/tsk-193-admin-account = #37 f5dfdde). Verdict: OK to merge after #36 and #37 and Alex's "merge". The blockers from #36 and #37 that this PR would have exposed are fixed there.

  • CI build green; draft; mergeable clean; rebased on #37.
  • docusaurus.config.ts: locale config unchanged from my previous review and correct (/de/, /fr/, /nl/, Deutsch / Français / Nederlands, htmlLang, ltr).
  • Local npm run build with all five locales and 'throw' on broken links/anchors/markdown links passes; hreflang alternates, canonical and per-locale sitemaps are generated; the plan badge is localized on /de/, /fr/, /nl/ with no Russian text left.
  • scripts/sync-docs-version.mjs now really requires the locales. Tested on this head: baseline exit 0; plans.md removed from fr current and version-v1.0 -> exit 1 ("missing: plans.md" against the EN list); both nl folders removed -> exit 1; only nl current removed -> exit 1; a changed file in de version-v1.0 -> exit 1.
  • README.md:124 now covers all five locales; README is public-safe (no internal task numbers or trackers, no product comparisons, hyphens only). Title fixed.

Non-blocking:

  • With only nl current missing, the "is missing" line is printed twice (once from the file-list check, once from the pair check). Cosmetic.
  • Merge order matters. I simulated squash-merging #36 and then #37 into v1.0.0-beta.4: #37 applies cleanly, but #38 then conflicts in scripts/sync-docs-version.mjs, because squash drops the shared history. After #37 is merged, retarget this PR to v1.0.0-beta.4 and rebase it, then re-run CI before merging.
  • FYI, outside this repo: the app's packages/i18n/src/locales/manifest.json still has docsPathPrefix: "/en" for de/fr/nl.
  • Please clear the squash body when merging (some commit messages carry the internal task number).

@zzzoryn
zzzoryn changed the base branch from cursor/tsk-193-admin-account to v1.0.0-beta.4 December 2, 2026 07:48
Resolve squash-merge conflicts from parent PRs #36/#37 (and #33/#34).
Keep v1.0.0-beta.4 docs content; retain #38 locale enablement changes
in docusaurus.config.ts, scripts/sync-docs-version.mjs, and README.md.

Co-authored-by: Alexander Zorin <zzzoryn@users.noreply.github.com>
@zzzoryn
zzzoryn marked this pull request as ready for review December 2, 2026 07:55
@zzzoryn
zzzoryn merged commit 6e76ad6 into v1.0.0-beta.4 Dec 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants