Skip to content

Conversation

yslpn
Copy link
Contributor

@yslpn yslpn commented Sep 14, 2025

i18n: Migrate Korean to ko, deprecate kr

  • Use the correct ISO 639-1 language code for Korean: ko
  • Keep kr as a deprecated alias for backward compatibility
  • Add ko to build scripts (npm & JSR); preserve kr outputs
  • Update types and documentation accordingly
  • No breaking changes in this release; kr will be removed in a future major

Migration: prefer @valibot/i18n/ko instead of @valibot/i18n/kr.

Closes #1285

@Copilot Copilot AI review requested due to automatic review settings September 14, 2025 14:16
Copy link

vercel bot commented Sep 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
valibot Ready Ready Preview Comment Sep 14, 2025 2:20pm

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. fix A smaller enhancement or bug fix labels Sep 14, 2025
Copy link

@Copilot Copilot AI left a 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.

@fabian-hiller
Copy link
Owner

Thank you so much! I will try to make some time to merge it this or next week and publish a new version.

Copy link

pkg-pr-new bot commented Sep 16, 2025

Open in StackBlitz

npm i https://pkg.pr.new/valibot@1306

commit: 803e5a6

@yslpn yslpn mentioned this pull request Sep 24, 2025
@fabian-hiller
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A smaller enhancement or bug fix size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect ISO 639-1 code for Korean language

2 participants