i18n.js (234B)
- import { defineStore } from 'pinia'
- export const useI18nStore = defineStore('i18n', {
- state: () => ({
- i18n: null
- }),
- actions: {
- setI18n (newI18n) {
- this.$patch({
- i18n: newI18n.global
- })
- }
- }
- })
git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
i18n.js (234B)
- import { defineStore } from 'pinia'
- export const useI18nStore = defineStore('i18n', {
- state: () => ({
- i18n: null
- }),
- actions: {
- setI18n (newI18n) {
- this.$patch({
- i18n: newI18n.global
- })
- }
- }
- })