Repository navigation
feat(i18n): Polish translation - #60
Merged
Merged
Conversation
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.
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.
Adds Polish (pl) as a built-in language.
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).ui/src/core/messages-pl.ts, all 765 keys. Polish counts need one/few/many, sotn()now picks<base>_few/<base>_manyfromplPluralsthroughIntl.PluralRules('pl')(other languages keep_one/_other)._TEXT_ROWS, all 227 texts. Sentences with counts are worded so they agree with any number ("1 dzień", "2/5 dni").Intl.NumberFormat('pl')), currency sign after the amount ("1,25 €").plugin/spooler/spooler_any.pyandui/build.jsonwithnpm 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 testswith WORKERS=1 (688 OK, page scenarios included),ruff checkclean.Thanks to @xtronets for asking for Polish and offering a translation (u1control#20). This translation was written fresh from the current English sources.