Skip to content

Dutch UI language leaves the editor engine in English #5499

Closed

Description

@Jocs

Summary

Dutch is offered as a UI language, but the muya editor engine never receives the Dutch locale, so a user who picks Nederlands gets Dutch application chrome and an English editor UI.

Details

packages/muya/src/locales/nl.ts is complete (85/85 keys, name: 'nl') and packages/muya/src/locales/index.ts exports it. It is missing from the three places the desktop needs it:

Location Contents
packages/muya/src/index.ts:2 export { de, en, es, fr, ja, ko, pt, tr, zhCN, zhTW } from './locales' — no nl
packages/desktop/src/types/muya-core.d.ts declares every locale except nl
packages/desktop/src/renderer/src/components/editorWithTabs/editor.vue (MUYA_LOCALES) no nl entry

The desktop does offer Dutch — SUPPORTED_LANGUAGES in packages/desktop/src/common/i18n.ts contains 'nl' and getLanguageOptions() lists it — so getMuyaLocale('nl') (editor.vue:165) hits its ?? en fallback.

packages/muya/CLAUDE.md calls src/index.ts "the single export hub" for the published API, so this is an @muyajs/core API gap as well as a desktop wiring miss.

What the user sees

With Nederlands selected: menus, preferences, dialogs and the sidebar are Dutch, while the inline format toolbar tooltips, the / quick-insert menu, the emoji picker categories, the image selector and the code-block/preview strings stay English.

Reproduce

  1. Preferences → General → Language → Nederlands
  2. Type / in the editor, or select text and look at the inline format toolbar
  3. The engine-rendered UI is English

Origin

Introduced when Dutch was added in #5137 — that PR wired nl into the desktop registries and shipped nl.ts, but not into the muya export hub. It has never been caught because no test compares the language registries against each other (filed separately).

Fix

Add nl to the three lists above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions