Skip to content

feat(i18n): enable Hindi translations for Terms of Use page - #189

Merged
palchhinparihar merged 3 commits into
palchhinparihar:mainfrom
mahiptiwari1000:bug/#187
Oct 31, 2025
Merged

feat(i18n): enable Hindi translations for Terms of Use page#189
palchhinparihar merged 3 commits into
palchhinparihar:mainfrom
mahiptiwari1000:bug/#187

Conversation

@mahiptiwari1000

Copy link
Copy Markdown
Contributor
  • Replaced hardcoded English text with i18n translation keys
  • Updated useTranslation hook to use default namespace
  • Added 'termsPage' entries in en.json and hi.json

📝 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

  • [ x ] 🐞 Bug fix (non-breaking change which fixes an issue)

📸 Screenshots / Demo (if applicable)

Screenshot 2025-10-30 at 1 40 52 AM

- Replaced hardcoded English text with i18n translation keys
- Updated useTranslation hook to use default namespace
- Added 'termsPage' entries in en.json and hi.json
@netlify

netlify Bot commented Oct 30, 2025

Copy link
Copy Markdown

Deploy Preview for wordwizard-texteditor ready!

Name Link
🔨 Latest commit 91ce311
🔍 Latest deploy log https://app.netlify.com/projects/wordwizard-texteditor/deploys/69044ba8ee91960008f05ab7
😎 Deploy Preview https://deploy-preview-189--wordwizard-texteditor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mahiptiwari1000

Copy link
Copy Markdown
Contributor Author

@palchhinparihar Please review the PR and let me know your thoughts on it, thanks :)

@palchhinparihar

Copy link
Copy Markdown
Owner

@mahiptiwari1000

please add Hindi translation for

Screenshot 2025-10-30 122004 (in footer seection) Screenshot 2025-10-30 122011

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/components/TermsOfUse.jsx
Comment thread src/components/TermsOfUse.jsx
Comment thread src/components/TermsOfUse.jsx
@mahiptiwari1000

Copy link
Copy Markdown
Contributor Author

done @palchhinparihar

@palchhinparihar

Copy link
Copy Markdown
Owner

Hi, @mahiptiwari1000. Fetch the latest commit from upstream you still not have updated features.

@palchhinparihar palchhinparihar added hacktoberfest Participating in Hacktoberfest hacktoberfest2025 Participating in Hacktoberfest 2025 hacktoberfest-accepted Accepted for the Hacktoberfest 2025 labels Oct 31, 2025
@mahiptiwari1000

Copy link
Copy Markdown
Contributor Author

now?

@palchhinparihar
palchhinparihar merged commit 5e76ed1 into palchhinparihar:main Oct 31, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest Participating in Hacktoberfest hacktoberfest2025 Participating in Hacktoberfest 2025 hacktoberfest-accepted Accepted for the Hacktoberfest 2025

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Terms of Use page does not translate to Hindi when Hindi is selected

3 participants