Commit b35cac3
committed
fix: use i18n language instead of browser language in mock getSystemSettings
The mock getSystemSettings() always returned navigator.language (browser
locale), ignoring the in-app language toggle. This caused fetchVibeInfo()
to override the user's language selection back to the browser default
whenever a new app was initialized.
Read from i18next.language first so that the app-level language switch
is respected, falling back to navigator.language only when i18n has not
yet been initialized.1 parent 91ec4d6 commit b35cac3
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
310 | | - | |
| 311 | + | |
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
| |||
0 commit comments