feat(i18n): enable Hindi translations for Terms of Use page - #189
Merged
Conversation
- Replaced hardcoded English text with i18n translation keys - Updated useTranslation hook to use default namespace - Added 'termsPage' entries in en.json and hi.json
✅ Deploy Preview for wordwizard-texteditor ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Author
|
@palchhinparihar Please review the PR and let me know your thoughts on it, thanks :) |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds internationalization (i18n) support for the Terms of Use page by translating hardcoded English text into translatable strings and adding Hindi translations.
- Added Hindi translations for the Terms of Use page in the i18n configuration
- Refactored the TermsOfUse component to use translation keys instead of hardcoded English strings
- Fixed formatting inconsistencies in the English i18n file (spacing around Undo/Redo entries)
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/i18n/hi.json | Added Hindi translations for all Terms of Use page content including title, intro, sections, and contact information |
| src/i18n/en.json | Added English translation keys for Terms of Use page and fixed spacing formatting for Undo/Redo tooltip entries |
| src/components/TermsOfUse.jsx | Refactored component to use i18n translation hooks, replacing hardcoded text with translation keys and fixing code formatting |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Author
|
done @palchhinparihar |
Owner
|
Hi, @mahiptiwari1000. Fetch the latest commit from upstream you still not have updated features. |
Contributor
Author
|
now? |
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.


📝 Description
This PR adds full Hindi translation support to the Terms of Use page, ensuring all static content is localized when switching languages.
Fixes #187
🔍 Type of Change
📸 Screenshots / Demo (if applicable)