Closed smartpierre closed 8 years ago
@wffranco
I managed to do it without hacking project files. Clone file dist/vue-strap-lang.js somewhere in your project, add your translation (or, in your case, replace) into object inside VueStrapLang function. Then require your file before any import from vue-strap.
require('./VueStrapLang.js');
import {datepicker} from 'vue-strap';
Does anyone know, is this a right way to do it?
Translations now is separated from the main vuestrap, so if you need translations you have to add the lang file. Required:
require('vue-strap/dist/vue-strap-lang.js')
or in your project include the file as in the documentation (is in 'getting started').
It worked !
Thanks :)
Hello,
I use vue-strap on my projects and I need the french translations, however I don't understand how I am supposed to add it here :
https://github.com/yuche/vue-strap/blob/master/src/utils/utils.js#L83
Could explain me how I should proceed or add this translation yourself please ?
Thanks !