safetwitch/src/i18n.ts

25 lines
626 B
TypeScript
Raw Normal View History

2023-06-13 12:08:43 -04:00
import { createI18n } from 'vue-i18n'
import en from '@/locales/en.json'
import es from '@/locales/es.json'
2023-07-10 15:59:56 -04:00
import nl from '@/locales/nl.json'
import pt from '@/locales/pt.json'
2023-07-16 11:35:41 -04:00
import fa from '@/locales/fa.json'
2023-07-18 20:35:17 -04:00
import he from '@/locales/he.json'
2023-07-24 15:59:58 -04:00
import ru from '@/locales/ru.json'
2023-06-13 12:08:43 -04:00
export default createI18n({
legacy: false,
2023-07-03 19:06:28 -04:00
locale: import.meta.env.VUE_APP_I18N_LOCALE || 'en-US',
fallbackLocale: import.meta.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en-US',
2023-06-13 12:08:43 -04:00
globalInjection: true,
messages: {
2023-07-03 19:06:28 -04:00
'en-US': en,
2023-07-10 15:59:56 -04:00
'es-ES': es,
'nl-NL': nl,
'pt-PT': pt,
2023-07-16 11:35:41 -04:00
'fa-IR': fa,
2023-07-24 15:59:58 -04:00
'he-IL': he,
'ru-RU': ru
2023-06-13 12:08:43 -04:00
}
})