-
-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] <Popup> language doesn't change when prop lang changed by computed property #391
Comments
Menark
changed the title
[Bug]
[Bug] <Popup> language doesn't change when prop lang changed by computed property
Dec 4, 2019
The problem can be bypassed by adding |
Yes, you can forceupdate by add
import 'vue2-datepicker/locale/ru'
export default {
data() {
return {
lang: 'en',
};
},
methods: {
changeLocale() {
this.lang = this.lang === 'en' ? 'ru' : 'en';
},
},
}; |
Thank you. |
mengxiong10
added a commit
that referenced
this issue
Dec 5, 2019
v3.2.2 fixed it. |
lleizh
pushed a commit
to lleizh/vue2-datepicker
that referenced
this issue
Dec 6, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vue2-datepicker version: 3.0.1
Vue version: 2.6.10
Browser: Chrome 78.0.3904.108
Steps to reproduce
Adding
:lang
prop with computed property which return object with custom localization depending on site localization (ru or en) . Change site localizaion by button. Open DatePicker.Reproduction Link or Source Code
Ru:
En:
DatePicker:
Computed propperty:
Expected behavior
Month, year, weekdays language names should change depending on current
lang
prop.Actual behavior
Month, year, weekdays names don't change depending on current
lang
prop. Prop works well. Components TableMonth and others use injected locale, which changes only on mount.The text was updated successfully, but these errors were encountered: