Repository navigation
feat(i18n): add Polish localization - #6111
Merged
Merged
Conversation
Add a Polish translation for the desktop UI (static/locales/pl.json) and the muya editor engine (src/locales/pl.ts), and register `pl` as a supported interface language so it is selectable in Preferences and auto-detected from a pl-* system locale. Polish keeps product names (Front Matter, Mermaid, PlantUML) in English, so it joins TERM_PRESERVING_LOCALES in both locale validation specs.
Tkaixiang
requested review from
Tkaixiang
and
a balanced review from Copilot
November 23, 2026 07:50
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The AI-assisted Polish translation needs native-speaker review and in-app wording and layout validation, since no manual UI testing was reported and structural locale tests cannot establish linguistic quality or rendering fit.
No open issues 🎉
What changed in this PR
Adds Polish as MarkText’s 14th UI language across the desktop application and Muya editor engine, following the existing localization structure.
Changes:
- Adds Polish desktop and editor translations, with “Polski” available in every locale’s language list.
- Registers Polish for language detection, preferences, Muya exports, and packaged Electron resources.
- Extends locale validation and language-matching tests, and updates Muya’s documentation.
| File | Description |
|---|---|
packages/muya/src/locales/pl.ts |
Adds Polish editor translations. |
packages/muya/src/locales/index.ts |
Exports the Polish locale. |
packages/muya/src/index.ts |
Exposes Polish through the public package API. |
packages/muya/src/__tests__/localeCompleteness.spec.ts |
Includes Polish in locale completeness checks. |
packages/muya/README.md |
Documents 14 supported locales, including Polish. |
packages/desktop/test/unit/specs/locale-validation.spec.ts |
Allows preserved technical names in Polish. |
packages/desktop/test/unit/specs/i18n.spec.ts |
Tests pl and pl-PL language matching. |
packages/desktop/static/locales/zh-TW.json |
Adds the “Polski” language label. |
packages/desktop/static/locales/zh-CN.json |
Adds the “Polski” language label. |
packages/desktop/static/locales/tr.json |
Adds the “Polski” language label. |
packages/desktop/static/locales/ru.json |
Adds the “Polski” language label. |
packages/desktop/static/locales/pt.json |
Adds the “Polski” language label. |
packages/desktop/static/locales/pl.json |
Adds Polish desktop UI translations. |
packages/desktop/static/locales/nl.json |
Adds the “Polski” language label. |
packages/desktop/static/locales/ko.json |
Adds the “Polski” language label. |
packages/desktop/static/locales/ja.json |
Adds the “Polski” language label. |
packages/desktop/static/locales/it.json |
Adds the “Polski” language label. |
packages/desktop/static/locales/fr.json |
Adds the “Polski” language label. |
packages/desktop/static/locales/es.json |
Adds the “Polski” language label. |
packages/desktop/static/locales/en.json |
Adds the “Polski” language label. |
packages/desktop/static/locales/de.json |
Adds the “Polski” language label. |
packages/desktop/src/renderer/src/util/muyaLocale.ts |
Maps the Polish preference to Muya’s locale. |
packages/desktop/src/renderer/src/prefComponents/general/config.ts |
Adds Polish to the language selector. |
packages/desktop/src/common/i18n.ts |
Registers Polish as a supported language. |
packages/desktop/electron-builder.yml |
Includes Polish Electron language resources. |
Review effort: Balanced
Jocs
approved these changes
Nov 23, 2026
7 of 10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Polish (
pl) as a UI language, following the same structure as the Italian localization (#5538):packages/desktop/static/locales/pl.json: full desktop UI translation, with the same keys asen.json.packages/muya/src/locales/pl.ts: editor engine strings (quick insert, format toolbar, table tools, emoji picker, image tools, diagrams). Exported from@muyajs/core.plinSUPPORTED_LANGUAGES(common/i18n.ts), the Preferences language list,MUYA_LOCALESandelectronLanguagesinelectron-builder.yml.preferences.general.language.polishlabel ("Polski") to every locale file, as was done foritalian.plis added toTERM_PRESERVING_LOCALESin both locale validation specs.Type of change
Test plan
i18n.spec.tsnow expectsplandpl-PLto resolve topl. The "unsupported language" example changed frompl-PLtosv-SE.localeCompleteness.spec.tscovers the new muya locale.pnpm run lint(0 errors),pnpm run typecheckandpnpm --filter @muyajs/core lint:typespass.locale-validation.spec.ts+i18n.spec.ts(87 tests) and muyalocaleCompleteness.spec.ts(79 tests).Full unit runs: desktop 1752 passed / 2 failed, muya 5022 passed / 1 failed. The failures are
pandoc-discovery.spec.ts(2) andfancyLists.spec.ts > pandoc reads the same structure(1). They fail the same way on a cleandevelopcheckout on a machine with Pandoc installed at/usr/bin/pandoc, so they are environment-specific and unrelated to this change.Notes for reviewers [optional]
&is kept inmenu.theme.theme("&Motyw").it,nl,ruortreither).By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.