Update view language if system language is changed and the user has no profile language set
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user