mirror of https://github.com/VERT-sh/VERT.git
fix: language dropdown not updating
This commit is contained in:
parent
1227ed29d5
commit
61c22b6add
|
@ -303,6 +303,7 @@ export const availableLocales = {
|
|||
|
||||
export function updateLocale(newLocale: string) {
|
||||
log(["locale"], `set to ${newLocale}`);
|
||||
localStorage.setItem("locale", newLocale);
|
||||
// @ts-expect-error shush
|
||||
setLocale(newLocale, { reload: false });
|
||||
// @ts-expect-error shush
|
||||
|
|
Loading…
Reference in New Issue