Skip to content

feat(i18n): ship Spanish and French catalogs - #1057

Merged
greatest0fallt1me merged 2 commits into
Predictify-org:mainfrom
Killerjunior:feat/994-spanish-french-i18n
Nov 23, 2026
Merged

greatest0fallt1me merged 2 commits into
Predictify-org:mainfrom
Killerjunior:feat/994-spanish-french-i18n

Conversation

@Killerjunior

Copy link
Copy Markdown
Contributor

Description

Adds Spanish and French translation catalogs and connects translations to the language preference across navigation, the markets page, and settings. Adds locale-aware formatting helpers and catalog/formatting tests.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Performance improvement
  • Refactoring (no functional changes)
  • Style/UI changes
  • Test updates
  • CI/CD changes
  • Security improvements

Related Issues

Closes #994

Files Modified

  • en.ts, es.ts, and fr.ts: extend the English source catalog and add complete Spanish and French catalogs.
  • index.ts and index.ts: register catalogs, export formatting helpers, and document locale setup.
  • format.ts: add Intl-based number, currency, date, and relative-time formatting.
  • catalog-parity.test.ts and format.test.ts: cover catalog keys, placeholders, empty values, and locale formatting.
  • Navbar.tsx and MobileBottomTabs.tsx: translate navigation labels and related accessibility text.
  • page.tsx: translate the markets header and filters; format displayed numbers by locale.
  • Settings account, privacy, and motion pages: replace English UI literals with translations. The language page already uses useTranslation().
  • navbar.a11y.test.tsx and useLanguage.test.ts: cover Spanish navbar labels and browser locale mapping.

Key Changes

  • Spanish and French catalogs match all 236 English keys and their interpolation placeholders.
  • Unknown catalog or formatting locales fall back to English.
  • Existing live language preference behavior updates the UI and <html lang>; Spanish and French were already listed among supported languages.
  • No new dependencies added.

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing completed
  • Cross-browser testing (if applicable)
  • Mobile responsiveness tested (if applicable)
  • Accessibility testing completed
  • Performance testing (if applicable)

Validation evidence:

  • git diff --check — passed.
  • Catalog key, placeholder, and non-empty-value parity check — passed for all 236 keys in Spanish and French.
  • pnpm test -- app/i18n hooks/__tests__/useLanguage.test.ts components/navbar/__tests__/navbar.a11y.test.tsx — not run; pnpm was not recognized in the environment. Offline dependency restoration also could not complete because the package cache lacked a required tarball.

Test Coverage

  • New code is covered by tests
  • Existing tests still pass
  • Test coverage meets project standards

Code Quality

  • Code follows project style guidelines
  • Self-review completed
  • Code is self-documenting
  • No console errors or warnings
  • No linting errors
  • No TypeScript errors (if applicable)

Functionality

  • All tests pass
  • Feature works as expected
  • No breaking changes introduced
  • Performance impact assessed

Documentation

  • README updated (if applicable)
  • Code comments added where necessary
  • API documentation updated (if applicable)
  • Changelog updated (if applicable)

Security & Accessibility

  • Security considerations addressed
  • Accessibility standards met
  • No sensitive data exposed
  • Input validation implemented

Breaking Changes

Breaking Changes:

  • None.

Migration Steps:

  • None.

Additional Notes

Dependencies

  • No new dependencies added
  • Dependencies updated (list changes)
  • Security vulnerabilities addressed

Performance Impact

  • No performance impact
  • Performance improved
  • Performance impact documented

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

@Killerjunior is attempting to deploy a commit to the Jagadeesh B's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Nov 23, 2026

Copy link
Copy Markdown

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

@greatest0fallt1me
greatest0fallt1me merged commit 2dcb18c into Predictify-org:main Nov 23, 2026
1 of 2 checks passed
@greatest0fallt1me

Copy link
Copy Markdown
Contributor

Thanks @Killerjunior! We resolved the merge conflicts on our side and merged this. 🎉

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.

Ship Spanish and French catalogs and wire app/i18n to the language setting

2 participants