mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
* Domain creation is now possible (#2507) * Wrong labels in DNS detail page (#2505)
17 lines
368 B
JavaScript
17 lines
368 B
JavaScript
import Vue from 'vue'
|
|
import GetTextPlugin from 'vue-gettext'
|
|
import translations from '@/translations.json'
|
|
|
|
Vue.use(GetTextPlugin, {
|
|
autoAddKeyAttributes: true,
|
|
availableLanguages: {
|
|
en: 'English',
|
|
fr: 'Français'
|
|
},
|
|
translations: translations
|
|
})
|
|
|
|
Vue.filter('translate', value => {
|
|
return !value ? '' : Vue.prototype.$gettext(value.toString())
|
|
})
|