-
Notifications
You must be signed in to change notification settings - Fork 156
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
Remove network dependency for downloading polyfills #84
Comments
You could download the common locale data to your build directory in your build script. |
@cwtuan Thanks! |
@cwtuan What if I'm not using the currency or date formatting functions? I'd like to just remove these locale files altogether until I need them, but if I pass an empty array as |
Shouldn't pass an empty array. Just pass the local path of common locale data in your app. |
Can you explain how to do this for, for example React: I downloaded:
Still shows "index.js:266 Language "en" is not supported. Check https://github.com/alibaba/react-intl-universal/releases/tag/1.12.0" But all the local translations still works.. but I don't like the warning in console. I have version 1.13.1 |
@OZZlE |
Ok so it "works" but it still logs a warning "index.js:266 Language "en" is not supported." and then it breaks in IE11 + Edge <= v.16 |
Probably when you are importing those JSON files they're getting loaded as objects, the internal code expects those to be a path or a URL I believe. |
We have been seeing intermittent long delays when fetching https://g.alicdn.com/react-intl-universal/locale-data/1.0.0/en.js that prevent our product from loading while waiting, so have been forced to switch to a |
@jhaenchen |
It's not me bringing the ticket up again, but anyone who is using It might be valuable to let |
Remove network dependency for common locale data fix #84
Fixed in v2.0.3. https://github.com/alibaba/react-intl-universal/releases/tag/2.0.3
|
I'm building a progressive web app that sometimes is offline and refreshes. In those scenarios, react-intl-universal causes a network exception to be shown in the console as the request initiated here fails. I recommend we move these files to the repository and you can have your build/deployment process copy these files as they're updated. There's no need for this repo to reach out to the internet.
The text was updated successfully, but these errors were encountered: