Tradeshift / tradeshift-ui

The Tradeshift UI Library & Framework
https://ui.tradeshift.com
Other
33 stars 45 forks source link

[i18n] Input type date does not localize value #64

Open zdlm opened 7 years ago

zdlm commented 7 years ago

From production, document list app adding filters, user locale is en-US (set via settings page)

screen shot 2016-08-03 at 10 49 05

From production, document list app adding filters, user locale is ja (set via settings page)

screen shot 2016-08-03 at 11 02 46

Initially if you play with user settings the locale on the top html is still "us"/the previous one, but the internal frame does have the new one; if you log out and back in, they come in sync again; not sure if that affects this, as even if they agree, the date value is still not being formatted.

https://github.com/Tradeshift/Client-Runtime/issues/546

wiredearp commented 7 years ago

As discussed in the old GitHub issues, this should probably be done with the fancy new ECMAScript Internationalization API (and a polyfill for IE such as https://github.com/andyearnshaw/Intl.js/)