Add multi-language support with English and French translations#1
Merged
joris-decombe merged 1 commit intomainfrom Dec 23, 2025
Merged
Add multi-language support with English and French translations#1joris-decombe merged 1 commit intomainfrom
joris-decombe merged 1 commit intomainfrom
Conversation
Implements i18next-based internationalization to support multiple languages. Initial languages: English (en) and French (fr). Features: - Language selector component in all views (Landing, Facilitator, Player) - Translation files organized by component/view - Language preference persists in localStorage - All UI elements, scenarios, and difficulty tables translated - Maintains "ROLLS & RESPONDERS" brand name across languages Technical changes: - Added i18next and react-i18next dependencies - Created src/i18n.js configuration - Created src/locales/ with en.json and fr.json - Refactored src/scenarios.js to use translation functions - Updated src/App.jsx with LanguageSelector and translation hooks - Updated CONTRIBUTING.md with i18n documentation - Fixed screenshot script baseURL to match vite config All 3 scenarios fully translated (DDoS Attack, Ransomware, Cloud Compromise). Follows atomic state update pattern. Linting and build verified.
joris-decombe
added a commit
that referenced
this pull request
Dec 23, 2025
Add multi-language support with English and French translations
joris-decombe
added a commit
that referenced
this pull request
Dec 23, 2025
Add multi-language support with English and French translations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements internationalization (i18n) using react-i18next to support multiple languages. Initial release includes English and French translations.
Features
Technical Implementation
New Files
src/i18n.js- i18next configuration with language persistencesrc/locales/en.json- Complete English translationssrc/locales/fr.json- Complete French translationsModified Files
src/App.jsx- Added LanguageSelector component and translation hookssrc/scenarios.js- Refactored to use dynamicgetScenarioData(t)functionCONTRIBUTING.md- Added comprehensive i18n documentationpackage.json- Added i18next dependenciesscripts/take-screenshots.mjs- Fixed baseURL to match vite dev serverTranslation Coverage
All 3 NCSC NZ scenarios fully translated:
Testing
npm run lint- Passed with no errorsnpm run build- Production build successfulDocumentation
Screenshots
Language selector visible in all views:
All UI text, scenario content, and game mechanics properly translated.
Breaking Changes
None - fully backward compatible.
Next Steps
After merge, this enables: