mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
25 lines
468 B
JavaScript
25 lines
468 B
JavaScript
import Vue from 'vue'
|
|
import VueI18n from 'vue-i18n'
|
|
|
|
import ar from 'vuetify/lib/locale/ar'
|
|
import en from 'vuetify/lib/locale/en'
|
|
|
|
Vue.use(VueI18n)
|
|
|
|
const messages = {
|
|
en: {
|
|
...require('@/locales/en.json'),
|
|
$vuetify: en
|
|
},
|
|
ar: {
|
|
...require('@/locales/ar.json'),
|
|
$vuetify: ar
|
|
}
|
|
}
|
|
|
|
export default new VueI18n({
|
|
locale: process.env.VUE_APP_I18N_LOCALE || 'en',
|
|
fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en',
|
|
messages
|
|
})
|