mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: add language migration
This commit is contained in:
parent
863a3b7d1f
commit
2ea6285744
3 changed files with 20 additions and 3 deletions
|
@ -41,8 +41,11 @@ i18n
|
|||
escapeValue: false,
|
||||
},
|
||||
})
|
||||
.then(() => {
|
||||
window.electron.updateUserPreferences({ language: i18n.language });
|
||||
.then(async () => {
|
||||
const userPreferences = await window.electron.getUserPreferences();
|
||||
if (!userPreferences?.language) {
|
||||
window.electron.updateUserPreferences({ language: i18n.language });
|
||||
}
|
||||
});
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root")!).render(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue