You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello 😄
Are you considering adding something similar to the "Multiple Local support" of moment.js ?
moment.locale(); // en
moment().format('LT'); // 2:19 PM
moment().format('LTS'); // 2:19:56 PM
moment().format('L'); // 08/29/2018
moment().format('l'); // 8/29/2018
moment().format('LL'); // August 29, 2018
moment().format('ll'); // Aug 29, 2018
moment().format('LLL'); // August 29, 2018 2:19 PM
moment().format('lll'); // Aug 29, 2018 2:19 PM
moment().format('LLLL'); // Wednesday, August 29, 2018 2:19 PM
The idea is to keep the same tokens (LT, LTS, L...) and output different strings according to the language. My company needs this feature, so I am going to work on it, any advice/suggestions are welcome.
The text was updated successfully, but these errors were encountered:
Yes, formatting tokens, which can be configured differently in different locales would be nice. Instead of modifying the main Day.js object, I added this functionality as a plugin called LocalisableFormat. I sent PR #305 with it.
Hello 😄
Are you considering adding something similar to the "Multiple Local support" of moment.js ?
The idea is to keep the same tokens (LT, LTS, L...) and output different strings according to the language. My company needs this feature, so I am going to work on it, any advice/suggestions are welcome.
The text was updated successfully, but these errors were encountered: