Giter Club home page Giter Club logo

Comments (4)

bardt avatar bardt commented on May 19, 2024

Sorry, solved with this comment formatjs/formatjs#162 (comment)

from babel-plugin-react-intl.

ericf avatar ericf commented on May 19, 2024

@bardt does this distinction between <FormattedPlural> and <FormattedMessage> make sense to you? The addition of <FormattedPlural> was to expand React Intl to be useful for single-language apps too.

An interesting aspect of you brining this up is that if someone is using this Babel plugin, then they shouldn't be using <FormattedPlural> because it means they likely have hard-coded strings in they're app that won't be extracted for translation. So the plugin could be updated to warn when it encounters a <FormattedPlural> declaration… what do you think?

from babel-plugin-react-intl.

bardt avatar bardt commented on May 19, 2024

@ericf right now I see an inconvenience, probably caused by changes in react-intl v2, between official docs, v2 tread instructions and this plugin. It took some hours of experimenting to finally get it working like I supposed it to. I'd definitely vote for better developer experience we are used to in React itself (meaningful warnings, suggestion of using react devtools extension etc.).

Right now I'm close to a big deadline on a project I'm trying to use react-intl on, so have no spare time. After that, I could help with some changes to this plugin, according to my own dev experience.

from babel-plugin-react-intl.

ericf avatar ericf commented on May 19, 2024

@bardt no worries, I'm happy to add in this warning. Feel free to ping me if you run into any other issues as you work towards your deadline!

from babel-plugin-react-intl.

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.