Skip to content

Cookbook: mentions of Intl.DurationFormat #3067

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

Closed
o-t-w opened this issue Dec 28, 2024 · 0 comments
Closed

Cookbook: mentions of Intl.DurationFormat #3067

o-t-w opened this issue Dec 28, 2024 · 0 comments
Assignees
Labels
documentation Additions to documentation

Comments

@o-t-w
Copy link

o-t-w commented Dec 28, 2024

There are two mentions of Intl. DurationFormat in the Cookbook that can perhaps be updated?

"If you have Intl.DurationFormat, then you can do this with until.toLocaleString() and untilMonths.toLocaleString(). This example will be updated when that becomes possible."

"Note that this does not work unless you have Intl.DurationFormat, which is still an early-stage proposal."

Intl.DurationFormat is stage 4. It is implemented in Safari, Chrome/Edge and Firefox Nightly.

@ptomato ptomato self-assigned this Jan 13, 2025
@ptomato ptomato added the documentation Additions to documentation label Jan 13, 2025
ptomato added a commit that referenced this issue Jan 14, 2025
ptomato added a commit that referenced this issue Jan 14, 2025
Instead of always using a fake English-only format in this example, rely
on Intl.DurationFormat if it is present. Still fall back to the fake
format if it is not.

See: #3067
ptomato added a commit that referenced this issue Jan 14, 2025
ptomato added a commit that referenced this issue Jan 14, 2025
Instead of always using a fake English-only format in this example, rely
on Intl.DurationFormat if it is present. Still fall back to the fake
format if it is not.

See: #3067
ptomato added a commit that referenced this issue Jan 15, 2025
Instead of always using a fake English-only format in this example, rely
on Intl.DurationFormat if it is present. Still fall back to the fake
format if it is not.

See: #3067
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants