Git Product home page Git Product logo

react-translate-maker's People

Contributors

danielmahon avatar revskill10 avatar seeden avatar trakkasure avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-translate-maker's Issues

Missing dependancy

After installing webpack complains Error: Cannot resolve module 'react-addons-test-utils'.
Should react-addons-test-utils be moved into dependancies?

Possible to translate string and pass as prop?

Hi,

I was wondering how you would go about passing a translated string to a placeholder attribute on an input.

I could use translate-maker to get the translated string and pass it as a prop. Is it possible to do this without requiring translate-maker in my project?

Thanks

LocaleSwitch documentation

I'm trying to use the LocaleSwitch component.

It renders correctly and updates the new language at this.context.translate, but the component renders with the first select option selected, no matter which option is chosen.

The strings do not update until navigating back to the page or a refresh is forced. I can make this happen by using an onChange handler and calling this.forceUpdate()

Is this the recommended way to handle a locale change?

Loading multiple namespaces at the same time causes all but the last resolved to be cleared.

So, I have narrowed my problem down to LocaleProvider

On initialization, If the namespace changes, then only the last successfully loaded namespace locale will be saved.

Same issue if the locale changes once, and namespace changes multiple times.
componentWillReceiveProps calls translate.setLocale when namespace changes, but locale hasn't.

This happens because there is a load of the "global" namespace and a component namespace immediately after.
Serializing the load of these items would solve this issue. (although slow down the rendering of the page)

Nested components?

Hey,
I'm looking for a way to insert React components into the translated string.

Use-case:
In your example https://github.com/CherryProjects/react-translate-maker#en_usjs I want to have user names clickable.

The dirty workaround would be inserting <a> into the text and use TranslateHTML. But it doesn't work if I want links to be handled by react-router's <Link> component.

I've tried passing the components to properties as it is in react-intl (Rich Text Formatting), but it just results in [object Object]
Am I missing something or this feature is not supported?

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.