feat(i18n): add Hindi (hi-IN) language support#183
feat(i18n): add Hindi (hi-IN) language support#183adityagupta0251 wants to merge 0 commit intoasgardeo:mainfrom
Conversation
|
@brionmario Hope it finds you well 🍀 |
Still the formatting is not aligning to the existing coding style. Have you installed ESLint & Prettier plugins and tried fixing the lint issues?
Please have a look at the existing Also, lets keep the existing PR template: https://github.com/asgardeo/javascript/blob/main/.github/pull_request_template.md |
|
|
||
| /* eslint-disable sort-keys */ | ||
|
|
||
| import { I18nTranslations, I18nMetadata, I18nBundle } from "../models/i18n"; |
There was a problem hiding this comment.
As mentioned in #183 (comment), these can be auto-fixed.
| import { I18nTranslations, I18nMetadata, I18nBundle } from "../models/i18n"; | |
| 'elements.buttons.signIn': 'साइन इन', |
| import { I18nTranslations, I18nMetadata, I18nBundle } from "../models/i18n"; | |
| import {I18nTranslations, I18nMetadata, I18nBundle} from "../models/i18n"; |
| /* |---------------------------------------------------------------| */ | ||
|
|
||
| /* Buttons */ | ||
| "elements.buttons.signIn": "साइन इन", |
There was a problem hiding this comment.
We use single quotes.
As mentioned in #183 (comment), these can be auto-fixed.
| "elements.buttons.signIn": "साइन इन", | |
| 'elements.buttons.signIn': 'साइन इन', |
1b4e362 to
9275cad
Compare

feat(i18n): add Hindi (hi-IN) language support
📖 Description
Current Limitation
The Asgardeo JavaScript SDK currently does not support Hindi (हिन्दी – hi-IN).
Users preferring Hindi cannot see translated UI components, which limits accessibility for Hindi-speaking users.
Suggested Improvement
This PR adds Hindi (hi-IN) language support to the @asgardeo/i18n package.
⚙️ Implementation Details
New locale file:
packages/i18n/src/locales/hi-IN.ts
Translations provided for all UI components, including:
Sign-in / Sign-out
Dashboard
Profile
Other common authentication flows
Structure aligned with en-US.ts (including block comments).
Updated i18n configuration to register hi-IN as a supported locale.
Documentation updated to reference hi-IN.
✅ Checklist
Verified translations are accurate and culturally appropriate
Locale file structured with block comments aligned to en-US.ts
Package builds successfully with new locale
Confirmed no duplicate keys exist in translations
📦 Related Packages
@asgardeo/react
@asgardeo/nextjs
🙏 Notes for Reviewers
Please validate that translations render correctly in UI components.
Feedback on phrasing, terminology, or cultural accuracy is highly appreciated.