-
-
Notifications
You must be signed in to change notification settings - Fork 265
feat: add mongolian language #1224
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 Git ↗︎
|
Thank you for working on this PR! Do you know another dev that could review the translations for me? |
commit: |
not bad 👍 |
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
Adds Mongolian (mn
) support to the i18n package by extending types, adding translations, and wiring it into all build and export configurations.
- Extend
Language
type and addmn
entry - Add
packages/i18n/src/mn.ts
with Mongolian messages - Wire
mn
into build scripts,package.json
,jsr.json
, and.gitignore
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
packages/i18n/src/types.ts | Add 'mn' to the Language union in types.ts |
packages/i18n/src/mn.ts | New file: Mongolian translations for all validation messages |
packages/i18n/scripts/build-npm.ts | Import and include mn in the NPM build script |
packages/i18n/scripts/build-jsr.ts | Import and include mn in the JSR build script |
packages/i18n/package.json | Expose ./mn paths in exports and add "mn" to the languages array |
packages/i18n/jsr.json | Include !mn in ignore patterns and add all ./mn/... mappings in exports |
packages/i18n/.gitignore | Add mn to ignore generated output directories |
Comments suppressed due to low confidence (1)
packages/i18n/src/mn.ts:4
- Add tests to ensure the Mongolian translation covers all keys in the
Language.specific
interface and matches other language packs.
const language: Language = {
Add Mongolian for @valibot/i18n