Description
Currently, changing the language via the LocaleSwitcher does not update the entire application state consistently. Users report that some components remain in the previous language until a full page reload or navigation occurs.
Requirements and context
- Ensure all components using
next-intl hooks update immediately.
- Update the implementation to use recommended
next-intl navigation patterns instead of just router.refresh().
- Persist the selected locale correctly across sessions.
Suggested execution
- Review
LocaleSwitcher.tsx and i18n/navigation.ts.
- Implement
useRouter and usePathname from @/i18n/navigation for locale-aware routing.
- Verify that all server and client components react to the locale change.
Test and commit
- Test language switching on the dashboard, settings, and documentation pages.
- Verify that the language persists after a page refresh.
- Include a screen recording of the smooth transition.
Guidelines
- Follow existing patterns in
frontend/src/i18n.
- PR description must include: Closes #[issue_id]
Complexity: Medium (150 points)
Description
Currently, changing the language via the
LocaleSwitcherdoes not update the entire application state consistently. Users report that some components remain in the previous language until a full page reload or navigation occurs.Requirements and context
next-intlhooks update immediately.next-intlnavigation patterns instead of justrouter.refresh().Suggested execution
LocaleSwitcher.tsxandi18n/navigation.ts.useRouterandusePathnamefrom@/i18n/navigationfor locale-aware routing.Test and commit
Guidelines
frontend/src/i18n.Complexity: Medium (150 points)