A VueJS v2 responsive date range picker. Displays the number of nights selected and allow several useful options like custom check-in/check-out rules, localization support and more.
I'm using Vue-i18n and Weblate for our translation workflow.
Unfortunately, Weblate, but many other tools like dot-object or even deepmerge can have a hard time handling arrays.
We can get to the following common sense:
day-names can be an object like { 0: 'Domingo', 1: 'Lunes' }or{ sunday: 'Domingo', monday: 'Lunes' }
month-names can be an object like { 0: 'January', 1: 'February }or{ january: 'Enero', february: 'Febrero'}
I honestly don't know which is best. I find the string-based one easier to read right now, but I'm pretty sure that once we change the code accordingly, integers will be much easier to work with, and allow easier props customization.
I'm using Vue-i18n and Weblate for our translation workflow.
Unfortunately, Weblate, but many other tools like dot-object or even deepmerge can have a hard time handling arrays.
We can get to the following common sense:
day-names
can be an object like{ 0: 'Domingo', 1: 'Lunes' }
or{ sunday: 'Domingo', monday: 'Lunes' }
month-names
can be an object like{ 0: 'January', 1: 'February }
or{ january: 'Enero', february: 'Febrero'}
I honestly don't know which is best. I find the string-based one easier to read right now, but I'm pretty sure that once we change the code accordingly, integers will be much easier to work with, and allow easier props customization.