safetwitch/src/i18n.ts
2023-07-24 15:59:58 -04:00

25 lines
626 B
TypeScript

import { createI18n } from 'vue-i18n'
import en from '@/locales/en.json'
import es from '@/locales/es.json'
import nl from '@/locales/nl.json'
import pt from '@/locales/pt.json'
import fa from '@/locales/fa.json'
import he from '@/locales/he.json'
import ru from '@/locales/ru.json'
export default createI18n({
legacy: false,
locale: import.meta.env.VUE_APP_I18N_LOCALE || 'en-US',
fallbackLocale: import.meta.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en-US',
globalInjection: true,
messages: {
'en-US': en,
'es-ES': es,
'nl-NL': nl,
'pt-PT': pt,
'fa-IR': fa,
'he-IL': he,
'ru-RU': ru
}
})