Giter VIP home page Giter VIP logo

Comments (7)

cwtuan avatar cwtuan commented on June 17, 2024

It's used for formatting date, number, currency, and etc.

from react-intl-universal.

raunyuyuan avatar raunyuyuan commented on June 17, 2024

we have been this plugIn, But the promise get rejected and the error is

Failed to load https://g.alicdn.com/react-intl-universal/locale-data/1.0.0/zh.js In ie environment

from react-intl-universal.

cwtuan avatar cwtuan commented on June 17, 2024

@raunyuyuan Which IE version?

from react-intl-universal.

raunyuyuan avatar raunyuyuan commented on June 17, 2024

@cwtuan IE-edge, I Have resolved this problem just download two files zh.js and en.js in my project, then write following code:

intl.init({
                  currentLocale,
                  locales: {
                      [currentLocale]: data
                  },
                  commonLocaleDataUrls: {
                    en: "/static/langlib/en.js", // the file
                    zh: "/static/langlib/zh.js" // the file
                  }
              });

the param commonLocaleDataUrls is used to translate language? could you share some url?thanks :)

from react-intl-universal.

cwtuan avatar cwtuan commented on June 17, 2024

https://g.alicdn.com/react-intl-universal/locale-data/1.0.0/en.js

from react-intl-universal.

dragonge avatar dragonge commented on June 17, 2024

请问内网环境请求不通这个地址怎么办?

from react-intl-universal.

cwtuan avatar cwtuan commented on June 17, 2024

@dragonge

Upgrade to the latest version which will not load CND resource.

from react-intl-universal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.