Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECMAScript Intl API #17

Closed
josh opened this issue May 20, 2014 · 3 comments
Closed

ECMAScript Intl API #17

josh opened this issue May 20, 2014 · 3 comments

Comments

@josh
Copy link
Contributor

josh commented May 20, 2014

The ES internationalization APIs have partial implementations across browsers.

How can we leverage it when its available to provide better localized date formats?

/cc @dgraham @aroben @eanakashima @mislav

Resources

@josh
Copy link
Contributor Author

josh commented May 21, 2014

http://code.tutsplus.com/tutorials/working-with-intl--cms-21082

Intl.DateTimeFormat("en-US", {hour: "numeric"}).format(new Date())
// "1 PM"
Intl.DateTimeFormat("en-GB", {hour: "numeric"}).format(new Date())
// "13"

@josh josh self-assigned this May 21, 2014
@josh josh assigned dgraham and unassigned josh May 26, 2014
@dgraham
Copy link
Contributor

dgraham commented Jun 1, 2014

We did this in #18, #19, and #22.

@dgraham dgraham closed this as completed Jun 1, 2014
@josh
Copy link
Contributor Author

josh commented Jun 1, 2014

I was going to say "wait, wait" but then you opened #24. 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants