chore: added dark mode and language settings to the navbar

This commit is contained in:
2025-09-27 21:51:59 +02:00
parent f54eada94d
commit 73c397a1bc
9 changed files with 322 additions and 102 deletions
+11
View File
@@ -6,6 +6,9 @@ import {
currentFormattedMinutes
} from '../utils/dateUtils';
import StorageManager from '../managers/storageManager';
import i18n from '../i18n';
export const useStore = defineStore('store', {
state: () => {
return {
@@ -528,5 +531,13 @@ export const useStore = defineStore('store', {
]
} as IOrderS
};
},
actions: {
changeLang(lang: string) {
i18n.global.locale.value = lang as typeof i18n.global.locale.value;
this.currentAppLocale = lang;
StorageManager.setStringValue('lang', lang);
}
}
});