mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-16 19:55:18 +00:00
fix: locale change in dropdown doesn't work on first try
This commit is contained in:
@@ -18,12 +18,12 @@
|
|||||||
'it-IT': 'Italiano'
|
'it-IT': 'Italiano'
|
||||||
};
|
};
|
||||||
|
|
||||||
function updateLocale(locale: Locale) {
|
async function updateLocale(locale: Locale) {
|
||||||
setLocale(locale);
|
await userService.updateCurrent({
|
||||||
userService.updateCurrent({
|
|
||||||
...$userStore!,
|
...$userStore!,
|
||||||
locale
|
locale
|
||||||
});
|
});
|
||||||
|
setLocale(locale);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user