Skip to content

Commit 3fef9b1

Browse files
committed
fix: link translations not updated when changing language
1 parent d49f57d commit 3fef9b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/hooks/useLinks.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
import { useTranslation } from '../i18n/i18n'
12
import { NAV_CONFIG, SOCIAL_CONFIG } from '../links'
23

34
export const useLinks = () => {
5+
useTranslation()
6+
47
const NAV_LINKS = NAV_CONFIG.map(({ to, labelKey, icon }) => ({
58
to,
69
label: labelKey(),

0 commit comments

Comments
 (0)