owntracks / frontend

🌍 Web interface for OwnTracks built with Vue.js
MIT License
387 stars 53 forks source link

Datepicker locale #131

Open 5im-0n opened 1 month ago

5im-0n commented 1 month ago

Is it possible to somehow configure the datepicker locale? Having the week start on sunday is making me crazy :)

I saw that vue2-datepicker supports locales[1], but am I right that at the moment there is no way to configure them with config.js?

[1]https://github.com/mengxiong10/vue2-datepicker?tab=readme-ov-file#internationalization

jpmens commented 1 month ago

Having the week start on sunday is making me crazy

Many of us Europeans are very relieved the week starts on Monday!

linusg commented 1 month ago

am I right that at the moment there is no way to configure them with config.js?

Yes. I'll add an option once I get around to it, in the future we can add automatic detection with https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo