2024-04-01 15:25:09 +02:00
|
|
|
export const useNastavitveStore = defineStore('nastavitve', {
|
|
|
|
state: () => ({
|
2024-04-01 19:59:09 +02:00
|
|
|
izbraniJezik: 'sl',
|
2024-04-01 15:25:09 +02:00
|
|
|
mozniJeziki: {
|
2024-05-31 17:44:04 +02:00
|
|
|
de: 'Deutsch',
|
|
|
|
en: 'English',
|
|
|
|
es: 'Español',
|
2024-04-01 15:25:09 +02:00
|
|
|
hr: 'Hrvatski',
|
2024-05-31 17:44:04 +02:00
|
|
|
sl: 'Slovensko'
|
2024-04-01 15:25:09 +02:00
|
|
|
}
|
|
|
|
}),
|
|
|
|
actions: {
|
|
|
|
izberiJezik(jezik) {
|
2024-05-31 17:44:04 +02:00
|
|
|
if (Object.keys(this.mozniJeziki).indexOf(jezik) > -1) {
|
2024-04-01 15:25:09 +02:00
|
|
|
this.izbraniJezik = jezik
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|