feat: add Slovak (sk) locale translation#3762
feat: add Slovak (sk) locale translation#3762lukasbelak wants to merge 2 commits intodfinity:mainfrom
Conversation
Add complete Slovak language support for Internet Identity UI. - Full translation of all 398 UI strings - Slovak plural forms configured (nplurals=3) - Related discussion: https://forum.dfinity.org/t/intertnet-identity-multi-language-support/42013
feat: register Slovak (sk) in available and enabled locales
|
Dear @lukasbelak, In order to potentially merge your code in this open-source repository and therefore proceed with your contribution, we need to have your approval on DFINITY's CLA. If you decide to agree with it, please visit this issue and read the instructions there. Once you have signed it, re-trigger the workflow on this PR to see if your code can be merged. — The DFINITY Foundation |
There was a problem hiding this comment.
Pull request overview
This pull request adds Slovak language support to Internet Identity by introducing a complete translation file and registering the new locale in the application configuration. The implementation follows the existing pattern used for other supported languages (German, Spanish, French, Polish, Russian, etc.) and includes proper pluralization rules for Slovak.
Changes:
- Added
src/frontend/src/lib/locales/sk.powith 398 translated UI strings for Slovak language - Registered
"sk"locale in bothavailableLocalesandenabledLocalesarrays inlocale.constants.ts
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/frontend/src/lib/locales/sk.po | Complete Slovak translation with proper plural forms (nplurals=3) and all placeholders preserved |
| src/frontend/src/lib/constants/locale.constants.ts | Added "sk" to both availableLocales and enabledLocales arrays in alphabetical order |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Motivation
Internet Identity currently lacks Slovak language support. As discussed in the multi-language support forum thread, multilingual support is critical for broader adoption. Slovak is spoken by ~5 million native speakers.
Changes
sk.powith complete Slovak translation of all 398 UI stringsnplurals=3)"sk"in bothavailableLocalesandenabledLocalesinlocale.constants.tsTests
.poformat as existing locales (de, es, fr, pl, etc.){0},{name},<0>...</0>) verified to match source stringsrtlLocales