Skip to content

Commit

Permalink
fix: language change issues
Browse files Browse the repository at this point in the history
Signed-off-by: viktoriabakun <[email protected]>
  • Loading branch information
viktoriabakun committed Feb 4, 2025
1 parent 97e1913 commit 0971e6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/shell/src/hooks/use-locale-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export function useLocaleSwitcher() {
const switchLocale = useCallback(
(locale: string) => {
router.replace(pathname, { locale });
router.refresh();
},
[router, pathname],
);
Expand Down

0 comments on commit 0971e6d

Please sign in to comment.