Skip to content

feat: bootstrap i18next with EN/FR/ES translation files#304

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/update-i18n-configuration
Draft

feat: bootstrap i18next with EN/FR/ES translation files#304
Copilot wants to merge 2 commits intomainfrom
copilot/update-i18n-configuration

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 4, 2026

The app lacked a standard i18n layer — translations were hardcoded inline in salesCopy.ts with no i18next integration.

Changes

  • src/i18n.ts — New i18next config module; French forced as default (lng: 'fr') for the pilot, English as fallback (fallbackLng: 'en'), escapeValue: false (React handles XSS)
  • src/locales/{en,fr,es}/translation.json — Translation files extracted from existing salesCopy.ts and refined_locales.ts content, covering nav, hero, problem, solution, benefits, technology, trust, demo form, expansion, ethics, footer, overlay labels, and PAU guide strings
  • src/main.tsx — Side-effect import of ./i18n added before app mount to initialize i18next eagerly
  • package.json — Added i18next and react-i18next dependencies
// src/i18n.ts
i18n
  .use(initReactI18next)
  .init({
    resources,
    lng: 'fr',
    fallbackLng: 'en',
    interpolation: { escapeValue: false }
  });

The existing SALES_COPY / AppLocale system is left untouched; i18next runs alongside it and can be adopted incrementally by components via useTranslation.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tryonyou-app Ready Ready Preview, Comment May 4, 2026 8:45am
tryonyou-pilot Ready Ready Preview, Comment May 4, 2026 8:45am

Request Review

Copilot AI changed the title [WIP] Update i18n configuration to support multiple languages feat: bootstrap i18next with EN/FR/ES translation files May 4, 2026
Copilot finished work on behalf of LVT-ENG May 4, 2026 08:58
Copilot AI requested a review from LVT-ENG May 4, 2026 08:58
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.

Translation

2 participants