@valibot/i18n
v1.1.0
Published
The official i18n translations for Valibot
Maintainers
Readme
Valibot i18n
The official i18n translations for Valibot. See the internationalization guide for more details.
Current status
Valibot ships English messages by default, so this package publishes translated submodules for the languages below.
| Language | Pull Request | Status | | ---------------- | -------------------- | ------ | | Arabic (ar) | #527 | ✅ | | Azerbaijani (az) | #1409 | ✅ | | Catalan (ca) | #652 | ✅ | | Chinese (zh-CN) | #419 | ✅ | | Chinese (zh-TW) | #427 | ✅ | | Czech (cs) | #886 | ✅ | | Dutch (nl) | #438 | ✅ | | English (en) | #397 | ✅ | | Farsi (fa) | #838 | ✅ | | Finnish (fi) | #1318 | ✅ | | French (fr) | #418 | ✅ | | German (de) | #397 | ✅ | | Greek (el) | #1311 | ✅ | | Hungarian (hu) | #560 | ✅ | | Indonesian (id) | #683 | ✅ | | Italian (it) | #605 | ✅ | | Japanese (ja) | #431 | ✅ | | Korean (ko) | #1306 | ✅ | | Mongolian (mn) | #1224 | ✅ | | Norwegian (nb) | #439 | ✅ | | Polish (pl) | #584 | ✅ | | Portuguese (pt) | #509 | ✅ | | Romanian (ro) | #472 | ✅ | | Russian (ru) | #434 | ✅ | | Slovak (sk) | #1334 | ✅ | | Slovenian (sl) | #422 | ✅ | | Spanish (es) | #581 | ✅ | | Swedish (sv) | #606 | ✅ | | Turkish (tr) | #549 | ✅ | | Ukrainian (uk) | #423 | ✅ | | Vietnamese (vi) | #951 | ✅ |
The deprecated kr submodule remains available as an alias of ko for compatibility, but new integrations should use ko.
Getting started
Step 1: Clone repository
git clone [email protected]:open-circle/valibot.gitStep 2: Install dependencies
pnpm installStep 3: Build core library
cd ./library && pnpm buildStep 4: Change to directory
cd ../packages/i18nAdd language
- Add the ISO code to
src/types.ts - Duplicate
src/en.tsand change file name to ISO code - Change ISO code and translate messages in new file
- Import new language file in
scripts/build-npm.tsandscripts/build-jsr.ts - Add the new import to the
languagesarray - Update the "Current status" table in this README
Build library
Execute build script
pnpm build.npm # for npm
pnpm build.jsr # for JSR