DiscipleTools / disciple-tools-web-components

https://jade-chebakia-17493f.netlify.app/?path=/story/kitchen-sink--kitchen-sink
GNU General Public License v2.0
3 stars 8 forks source link

Localize dt-date format #80

Closed cairocoder01 closed 2 months ago

cairocoder01 commented 3 months ago

WordPress allows the configuration of date format in /wp-admin/options-general.php. That should be passed in to the dt-date component to control how the date is formatted.

cairocoder01 commented 3 months ago

Seems there isn't support for that on the standard date element. It uses the users current locale based on their OS. That might be sufficient. But if we want to force it, we could do something like this: https://stackoverflow.com/a/76010154/92876

cairocoder01 commented 2 months ago

After discussion among the developer team, we'll leave the date UI in the browser language as the user should be most familiar with that format because it is what they have chosen as their OS language.