mirror of
https://github.com/Spythere/genera-tor.git
synced 2026-05-03 13:38:12 +00:00
chore: added dark mode and language settings to the navbar
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user