server: Update locale when switching language from settings

This commit is contained in:
Elian Doran
2024-10-23 19:56:06 +03:00
parent af67362ad6
commit 9f6f0f5d60
2 changed files with 11 additions and 1 deletions

View File

@@ -41,4 +41,8 @@ function getCurrentLanguage() {
}
return language;
}
}
export function changeLanguage(locale: string) {
return i18next.changeLanguage(locale);
}