Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It would be trivial to allow all possible languages with toLocaleString[0]:

  d = new Date();
  console.log(d.toLocaleString(window.navigator.language, {
    weekday: 'short'
  }));
[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...




Added a language field. Thanks for the suggestion.

Example:

https://abetusk.github.io/neatocal/?language=ko-KR




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: