-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Include relative time polyfill locale data #8896
Include relative time polyfill locale data #8896
Conversation
3913b5c
to
c44413e
Compare
Builds ready [c44413e]
Page Load Metrics (641 ± 15 ms)
|
We were including the polyfill for the `Intl.RelativeTimeFormat` API, but we weren't including any locale data. This polyfill doesn't work without the locale data for whichever locale you're formatting. The data for all locales we support is now included. The locale data is loaded from disk as-needed (during app startup, and upon each change in locale).
c44413e
to
75fd1a1
Compare
This has been tested to work on Firefox v60.0, which is the same version we saw the Sentry error report from. I've tested it with the |
Builds ready [75fd1a1]
Page Load Metrics (1055 ± 55 ms)
|
For reference, this API was introduced in #8774 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
We were including the polyfill for the
Intl.RelativeTimeFormat
API, but we weren't including any locale data. This polyfill doesn't work without the locale data for whichever locale you're formatting.The data for all locales we support is now included. The locale data is loaded from disk as-needed (during app startup, and upon each change in locale).