Move i18n to new store

This commit is contained in:
Sean King 2023-04-04 14:40:12 -06:00
commit aa98e83ff0
No known key found for this signature in database
GPG key ID: 510C52BACD6E7257
5 changed files with 27 additions and 7 deletions

14
src/stores/i18n.js Normal file
View file

@ -0,0 +1,14 @@
import { defineStore } from 'pinia'
export const useI18nStore = defineStore('i18n', {
state: () => ({
i18n: null
}),
actions: {
setI18n (newI18n) {
this.$patch({
i18n: newI18n.global
})
}
}
})