logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

i18n.js (234B)


  1. import { defineStore } from 'pinia'
  2. export const useI18nStore = defineStore('i18n', {
  3. state: () => ({
  4. i18n: null
  5. }),
  6. actions: {
  7. setI18n (newI18n) {
  8. this.$patch({
  9. i18n: newI18n.global
  10. })
  11. }
  12. }
  13. })