ryandrewjohnson / react-localize-redux

Dead simple localization for your React components
https://ryandrewjohnson.github.io/react-localize-redux-docs/
MIT License
374 stars 88 forks source link

Fallback option for default language when using translate() function #210

Open tomasruud opened 4 years ago

tomasruud commented 4 years ago

Do you want to request a feature or report a bug? Feature

What is the current behavior? When I'm using the translate() function, it's not possible able to add a fallback option for the default language in the same way as when using the translate component <Translate>fallback</Translate/>.

What is the expected behavior? I would like to be able to supply a fallback translation for the default language when using the translate() function for translating.

Which versions of react and react-localize-redux are you using?

"react": "^16.13.1",
"react-localize-redux": "^3.5.3",