Language translations not working
See original GitHub issueAs per documentation I get the following errors:
- app.js:41701 [Vue warn]: Property or method “es” is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
Or if you pass a string and not an object as per documentation:
- Invalid prop: type check failed for prop “language”. Expected Object, got String.
My Code: `import Datepicker from ‘vuejs-datepicker’; import {en, es} from ‘vuejs-datepicker/dist/locale’;
export default {
mounted() {},
components: {
Datepicker
}
}`
<datepicker language="{es}" placeholder="Teste 123"></datepicker>
<datepicker language="es" placeholder="Teste 123"></datepicker>
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Fix: Google Translate Is Not Working in Chrome and Android?
If Google Translate is not working in Chrome or your Android phone, do you know how to fix it? In this post, we...
Read more >How to Fix Google Chrome Translate Not Working
Expand the Advanced section to the left side of the Settings panel, and then click Languages. Next, click Language under Languages (right-side ...
Read more >How to Fix Google Chrome Translate Not Working - TechPP
8 Ways to Fix Google Chrome Translate Not Working · 1. Go to Settings and click on Languages. · 2. On the Languages...
Read more >Translate Not Working in Chrome: 5 Quick Ways to Fix it
Click the menu button (three vertical dots) and select Settings. settings translate not working on chrome · Select the Language option. language.
Read more >Fix: Google Translate not Working - Appuals.com
Try to translate the page/text in Google Translate you were having issues with. Then in the dropdown box of From, select “Detect Language”...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You need to bind the import to a data property of the Vue component, otherwise the component know nothing about it. For example:
It should be added in the readme then at this place ; https://github.com/charliekassel/vuejs-datepicker#translations