Add Hindi translation - #79
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
messages/hi.json, a complete Hindi (hi) translation ofmessages/en.json.Single file added. No changes to
src/lib/locales.tsorsrc/providers/language-provider.tsx— registry wiring is handled separately.Key parity
en.json: 0 missing, 0 extrabunx tsc --noEmitclean;bun run test1282/1282 passingConventions used
आप;करेंimperative for buttonsTerminal punctuation
Source punctuation is mirrored, with the danda
।standing in for the Latin full stop — 586.-ending strings and the 65!-ending strings all end in।;?,:,…and unpunctuated strings carry over unchanged.Hindi has no native exclamation mark and does not conventionally use the borrowed
!for routine operation confirmations — Hindi UIs render these declaratively (कॉपी हो गया।, notकॉपी हो गया!). The!in the English toasts is a tone convention rather than semantic emphasis, so it maps to the danda. The only!characters in the file are the three literal!@#$character-class examples, which are inherited from the source.Worth a native speaker's eye
200 OK→ठीक है,502 Bad Gateway→ख़राब गेटवे. Recognition rests on the numeric code. Reasonable to reverse if English tokens are preferred.TipCalculator.paysrenders asभुगतान:rather than a verb, to avoid forcing gender agreement with an interpolated name.