Skip to content

feat(i18n): Polish translation - #60

Merged
bloodf merged 1 commit into
mainfrom
feat/i18n-pl
Nov 17, 2026
Merged

bloodf merged 1 commit into
mainfrom
feat/i18n-pl

Conversation

@bloodf

@bloodf bloodf commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Adds Polish (pl) as a built-in language.

  • Registered everywhere a language is: detection (pl, pl_PL, pl-PL, any code starting with "pl") on the page and in Python, the language picker ("Polski", added to every dictionary), UI_LANGUAGES, and PrimeVue's own labels (day and month names, dialog and paging labels).
  • Page: ui/src/core/messages-pl.ts, all 765 keys. Polish counts need one/few/many, so tn() now picks <base>_few / <base>_many from plPlurals through Intl.PluralRules('pl') (other languages keep _one / _other).
  • Python: a fifth column in _TEXT_ROWS, all 227 texts. Sentences with counts are worded so they agree with any number ("1 dzień", "2/5 dni").
  • Numbers and money: decimal comma, no-break-space grouping from 10 000 (as Intl.NumberFormat('pl')), currency sign after the amount ("1,25 €").
  • README, README.pt-BR and the Orca Cloud description list Polish; CHANGELOG entry.
  • Regenerated plugin/spooler/spooler_any.py and ui/build.json with npm run build.

Tests: Python and page completeness/placeholder tests now require pl; new tests for Polish detection, number/money formatting, plural forms for 1/2/5/12/22 (page and Python), the plate notice and plate rows in Polish, and the page switching to Polski / opening in Polish for pl_PL (X04).
Locally: npm run build, node --test tests/unit/*.test.ts (58 pass), python -m unittest discover -s tests with WORKERS=1 (688 OK, page scenarios included), ruff check clean.

Thanks to @xtronets for asking for Polish and offering a translation (u1control#20). This translation was written fresh from the current English sources.

Polish (pl) for the page and the Python-worded texts: language detection
(pl, pl_PL, pl-PL), the language picker (Polski), PrimeVue labels, number
and money formatting, and one/few/many plurals via Intl.PluralRules.
@bloodf
bloodf merged commit 4ac47fc into main Nov 17, 2026
6 checks 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.

1 participant