Fix locales

This commit is contained in:
Kasper Seweryn 2022-04-30 20:04:01 +02:00 committed by Georg Krause
parent da1cefc3b1
commit 260fdb2501
1 changed files with 2 additions and 2 deletions

View File

@ -1,12 +1,12 @@
import { watch } from 'vue'
import { locales } from '~/locales'
import locales from '~/locales.json'
import { usePreferredLanguages } from '@vueuse/core'
import { createGettext } from 'vue3-gettext'
import { InitModule } from '~/types'
import store from '~/store'
const defaultLanguage = store.state.ui.currentLanguage ?? 'en_US'
const availableLanguages = locales.reduce((map: { [key: string]: string }, locale) => {
const availableLanguages = locales.reduce((map: Record<string, string>, locale) => {
map[locale.code] = locale.label
return map
}, {})