-
-
Couldn't load subscription status.
- Fork 281
fix(i18n): migrate Korean to correct ISO code 'ko' #1306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates Korean language support from the incorrect ISO code 'kr' to the correct ISO 639-1 code 'ko' while maintaining backward compatibility.
- Adds proper 'ko' language code support with complete Korean translations
- Deprecates 'kr' with a JSDoc comment and keeps it as an alias for backward compatibility
- Updates build scripts, package exports, and documentation to include both codes
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/i18n/src/types.ts | Adds 'ko' to the Language union type |
| packages/i18n/src/kr.ts | Adds deprecation comment for 'kr' code |
| packages/i18n/src/ko.ts | Creates new Korean language file with 'ko' code |
| packages/i18n/scripts/build-npm.ts | Imports and includes 'ko' in build script |
| packages/i18n/scripts/build-jsr.ts | Imports and includes 'ko' in JSR build script |
| packages/i18n/package.json | Adds 'ko' export paths alongside existing 'kr' paths |
| packages/i18n/jsr.json | Adds 'ko' export mappings for JSR |
| packages/i18n/README.md | Updates documentation to show Korean as 'ko' instead of 'kr' |
| packages/i18n/CHANGELOG.md | Documents the migration and deprecation |
| packages/i18n/.gitignore | Adds 'ko' directory to gitignore |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
Thank you so much! I will try to make some time to merge it this or next week and publish a new version. |
commit: |
|
I haven't forgotten this PR and will probably merge it in 1 to 2 weeks. I am currently focused on Formisch a few other things. |
i18n: Migrate Korean to
ko, deprecatekrkokras a deprecated alias for backward compatibilitykoto build scripts (npm & JSR); preservekroutputskrwill be removed in a future majorMigration: prefer
@valibot/i18n/koinstead of@valibot/i18n/kr.Closes #1285