Update view language if system language is changed and the user has no profile language set

This commit is contained in:
Johannes Zellner
2025-09-17 12:06:50 +02:00
parent 753092db30
commit 9ba4ac9956
4 changed files with 9 additions and 4 deletions
+3
View File
@@ -6,6 +6,7 @@ const t = i18n.t;
import { ref, onMounted } from 'vue';
import { SingleSelect } from '@cloudron/pankow';
import { setLanguage } from '../i18n.js';
import moment from 'moment-timezone';
import SettingsItem from '../components/SettingsItem.vue';
import Section from '../components/Section.vue';
@@ -42,6 +43,8 @@ async function onLanguageChange(value) {
if (error) return console.error(error);
currentLanguage.value = value;
await setLanguage(value, false);
}
onMounted(async () => {