-
-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
DatePicker translation #219
Comments
this might work: import locale from 'uiv/src/locale'
locale.use(yourLocale) |
Tried it, didn't work. Thanks for it anyway. First, I put it in
to
and then it had the strange effect of translating everything to |
A small modification on localeMixin would solve my problem, though. So
|
Thanks. This looks good. PR is welcome. |
Great! |
Almost ready with th PR, but ran into a problem.
both Maybe, would it be possible to pass a |
I see. you should not use export const t = function (path, options) {
...
let current = options.$$locale || lang
...
} But another problem is, if you also have vue-i18n installed, this won't work. you have to check if |
wait a min... I just notice that, you can achieve your goal (internationalize a DatePicker component without the need to install the whole plugin) by using |
Opened the PR. BTW, why the $$ for |
because the |
* Create hu-HU.js * [DatePicker] translating by locale prop (refs #219)
It's done in v0.24.0, thanks. |
Hullo there,
Is there any possibility to internationalize a DatePicker component without the need to install the whole plugin with
Vue.use(Uiv, { locale: myLocale })
?For example being able to pass a locale object / json in
props
?Would appreciate a lot.
Thanks in advance!
The text was updated successfully, but these errors were encountered: