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

View file

@ -67,11 +67,6 @@ const persistedStateOptions = {
}
const store = createStore({
modules: {
i18n: {
getters: {
i18n: () => i18n.global
}
},
interface: interfaceModule,
instance: instanceModule,
// TODO refactor users/statuses modules, they depend on each other
@ -99,6 +94,7 @@ const persistedStateOptions = {
strict: false // Socket modifies itself, let's ignore this for now.
// strict: process.env.NODE_ENV !== 'production'
})
if (storageError) {
store.dispatch('pushGlobalNotice', { messageKey: 'errors.storage_unavailable', level: 'error' })
}