Skip to content

feat(i18n): reimplement Hindi (hi) localization file#485

Merged
llinsss merged 1 commit into
DogStark:mainfrom
Kalebtron1:feature/hi-localization
Jun 2, 2026
Merged

feat(i18n): reimplement Hindi (hi) localization file#485
llinsss merged 1 commit into
DogStark:mainfrom
Kalebtron1:feature/hi-localization

Conversation

@Kalebtron1
Copy link
Copy Markdown
Contributor

@Kalebtron1 Kalebtron1 commented May 30, 2026

Summary

Reimplements the Hindi localization file wata-board-frontend/src/i18n/locales/hi.json, which had been deleted. This restores full Hindi (Devanagari script) support for the app — important given Hindi is spoken by 600M+ people, primarily in India, one of the fastest-growing crypto markets.

Changes

  • Translated all UI strings to Hindi in Devanagari script across every section: app, navigation, payment, wallet, network, offline, about,
    contact, rate, errors, accessibility, common, time, currency, and validation.
  • Hindi pluralization handled via i18next _plural keys (e.g. घंटा/घंटे,महीना/महीनेkeeping invariable forms where the language requires them (मिनट,
    दिन,सप्ताह).
  • Number formats kept consistent with the source: literal numerals and {{count}}/{{amount}} interpolations match en.json and are formatted at
    runtime via Intl based on the active locale.
  • Interpolation placeholders ({{id}}, {{count}}, {{time}}, {{error}}, {{network}}, {{min}}, {{max}}) preserved and aligned key-by-key with
    en.json.

Acceptance criteria

  • All UI strings are translated
  • Handle Hindi pluralization rules
  • Use correct date and number formats
  • Devanagari script renders correctly (verify in-app / font support)
  • No untranslated strings in Hindi mode
  • Translations reviewed by a native speaker (see note below)

⚠️ Note: native speaker review

This PR closes #368, but the acceptance criterion "Translations are reviewed by a native speaker" has not yet been fulfilled. The Hindi strings were
produced and self-checked for grammatical/pluralization correctness, but a native Hindi speaker should review them before/after merge. Please flag any
phrasing that should be refined in a follow-up.

Local environment note

The app has pre-existing build/runtime errors unrelated to this PR
that prevent npm run dev from running locally. Since this PR only
adds hi.json (a static JSON file with no logic), correct rendering
depends entirely on the app's existing i18n setup and font support,
which are outside the scope of this change.

Closes #368

  Reinstates wata-board-frontend/src/i18n/locales/hi.json, which had been
  deleted, restoring full Hindi (Devanagari) support for the app.
  - Translate all UI strings to Hindi in Devanagari script (app, payment,
    wallet, network, offline, about, contact, rate, errors, accessibility,
    common, time, currency, validation)
  - Handle Hindi pluralization with i18next _plural keys (e.g. घंटा/घंटे,
    महीना/महीनेkeeping invariable forms where the language requires
  - Use correct number formatting: numerals and {{count}}/{{amount}}
    interpolations consistent with the source, formatted at runtime via Intl
  - Keep all interpolation placeholders ({{id}}, {{count}}, {{time}}, etc.)
    intact and aligned with en.json

  Closes DogStark#368
Copilot AI review requested due to automatic review settings May 30, 2026 19:32
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@Kalebtron1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Copy link
Copy Markdown
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@llinsss llinsss merged commit b64fd17 into DogStark:main Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Hindi Localization

3 participants