Skip to content

feat: add French locale and translation files - #85

Open
Dhozii wants to merge 3 commits into
Kalebtron1:mainfrom
Dhozii:fix/issue-67-add-french-locale-and-translation-files
Open

feat: add French locale and translation files#85
Dhozii wants to merge 3 commits into
Kalebtron1:mainfrom
Dhozii:fix/issue-67-add-french-locale-and-translation-files

Conversation

@Dhozii

@Dhozii Dhozii commented Aug 25, 2026

Copy link
Copy Markdown

Overview

This PR adds French as a fully supported locale and translates the main product flows first — login, onboarding, wallet setup, credit, and activity/history — while keeping English as a stable fallback. It reuses the existing i18n structure, registers fr in the locale config, and adds the French translation file so reviewers can switch the app to French without missing-key crashes.

Related Issue

Changes

🌐 French Locale and Core Screen Translations

  • [ADD] src/i18n/locales/fr.ts

    • Adds French translations for the core screens: Login, Onboarding, Wallet Setup, Credit Section, and Activity List.
    • Keys stay aligned with the current English source strings and reuse the existing i18n namespace structure.
    • Includes fallback-safe values so missing translations do not crash the UI.
  • [MODIFY] src/i18n/config.ts

    • Registers fr as a supported locale in the app's i18n configuration.
    • Keeps existing locale fallback behavior stable.
  • [MODIFY] src/components/LanguageToggle.tsx

    • Adds French as a selectable language option in the UI language switcher.

Verification Results

npm install
✅ Dependency install succeeds

npm run dev
✅ French locale selectable from LanguageToggle
✅ Core screens render in French without missing-key crashes
✅ English fallback behavior unchanged

npm run build
✅ Production build completes successfully
Acceptance Criteria Status
PR includes French locale and translated core screens fr registered and Login/Onboarding/WalletSetup/Credit/ActivityList translated
Reviewer can switch to French and see the app update without missing-key crashes ✅ Locale switch works; missing keys fall back safely
PR description names which screens were translated first ✅ Login, Onboarding, Wallet Setup, Credit Section, Activity List
Before/after behavior documented ✅ Before: French users saw partial/missing UI; After: core flows are translated with stable English fallback

Closes #67

@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

@Dhozii is attempting to deploy a commit to the alankcr1-6443's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Aug 25, 2026

Copy link
Copy Markdown

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

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.

Add French locale and translation files

1 participant