airblade / stimulus-datepicker

Stimulus-powered accessible datepicker
https://airblade.github.io/stimulus-datepicker/
MIT License
66 stars 5 forks source link

Make titles and labels configurable #4

Closed airblade closed 2 years ago

airblade commented 2 years ago

So that they can all be localised or tweaked invidivually.

For example:

https://github.com/airblade/stimulus-datepicker/blob/d02dbe8e9e9158bad118cbbd5ed8abba88933ef0/src/datepicker.js#L164-L166

airblade commented 2 years ago
airblade commented 2 years ago

When localising, the translations will generally be available as a hash/dictionary anyway (e.g. Rails i18n) so using a single JSON object data value would be most convenient.