Skip to content

fix: improve i18n for ComparisonBar component (#307)#379

Merged
nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
Icahbod:fix/issue-307-comparisonbar-i18n
Jun 1, 2026
Merged

fix: improve i18n for ComparisonBar component (#307)#379
nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
Icahbod:fix/issue-307-comparisonbar-i18n

Conversation

@Icahbod
Copy link
Copy Markdown

@Icahbod Icahbod commented Jun 1, 2026

Summary\nExtract hardcoded strings in ComparisonBar into i18n translation keys across all supported locales.\n\n## Changes\n- Added useTranslation hook to ComparisonBar component\n- Created comparison translation section in all 7 locale files (en, es, fr, de, zh, ar, he)\n- Keys include: title, copyComparisonLink, linkCopied, compareNow, clear, removeFromComparison, shareComparison\n- Added 10 unit tests covering all component states\n\n

Closes #307

- Extract all hardcoded strings into i18n translation keys
- Add comparison section to en, es, fr, de, zh, ar, he locale files
- Add unit tests for ComparisonBar covering all states
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@Icahbod 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

@nanaf6203-bit nanaf6203-bit left a comment

Choose a reason for hiding this comment

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

LGTM

@nanaf6203-bit nanaf6203-bit merged commit 3275081 into MettaChain:main Jun 1, 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.

Improve i18n for src/components/ComparisonBar.tsx

2 participants