feat(i18n): full internationalisation — Norwegian, English, Persian/RTL (#128)#131
Merged
Conversation
- Install i18next + react-i18next - Create translation JSON files for Norwegian (nb), English (en), and Persian/Farsi (fa) - Create app/src/lib/i18n.js with locale init, localStorage persistence (wl-lang), and RTL dir switching for Persian - Wire i18n init as first import in main.jsx Part of issue #128. Component wiring and RTL CSS remain in next steps. https://claude.ai/code/session_016RYEVLPLXgCaaPciBc3RYt
Phases 2-7 of issue #128: - Vazirmatn font (Regular/SemiBold/Bold woff2) bundled locally for Persian/RTL - @font-face + --fa-font CSS var added to carbon-tokens.css - [dir="rtl"] font override + SectionLabel switched to borderInlineStart in app.css/PageShell - Settings.jsx: live RadioButtonGroup (nb/en/fa) replacing the "Kommer snart" placeholder - bodymap.jsx: muscle labels and tooltip strings run through useTranslation - prompts.js: buildRecommendPrompt + buildPeriodRecommendPrompt accept lang param; tip field now follows user language - All 15 component files (PageShell, BodyPanel, ExerciseRow, ExerciseForm, LibraryPicker, MusclePicker, Login, TemplatePicker, TemplateSessionEditor, Bibliotek, Home, Planlegger, History, MuscleMap, Report) wired with useTranslation — hardcoded Norwegian replaced with t() - MuscleMap and Report pass i18n.language to prompt builders Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://white-island-090dfd003-131.westeurope.7.azurestaticapps.net |
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
fais selected:dir="rtl"on<html>, CSS logical properties (borderInlineStart) on accent stripslocalStorage(wl-lang), defaults tonbRadioButtonGroup)Test plan
Closes #128
🤖 Generated with Claude Code