Skip to content

Conversation

mtergel
Copy link

@mtergel mtergel commented Jun 12, 2025

Add Mongolian for @valibot/i18n

Copy link

vercel bot commented Jun 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
valibot ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2025 3:19am

@fabian-hiller
Copy link
Owner

Thank you for working on this PR! Do you know another dev that could review the translations for me?

@fabian-hiller fabian-hiller self-assigned this Jun 17, 2025
@fabian-hiller fabian-hiller added enhancement New feature or request labels Jun 17, 2025
Copy link

pkg-pr-new bot commented Jun 17, 2025

Open in StackBlitz

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

commit: e5984d4

@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Jun 17, 2025
@ganaena
Copy link

ganaena commented Jun 17, 2025

not bad 👍

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

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 add mn 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 = {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants