derzunov / redux-react-i18n Goto Github PK
View Code? Open in Web Editor NEWAn i18n solution for React/Redux and React Native projects
Home Page: https://derzunov.github.io/redux-react-i18n/
License: MIT License
An i18n solution for React/Redux and React Native projects
Home Page: https://derzunov.github.io/redux-react-i18n/
License: MIT License
store.dispatch( i18nActions.setLanguages( [ { code: 'ru-RU', name: 'Русский' }, { code: 'en-US', name: 'English (USA)' }, { code: 'pl', name: 'Polish' }, { code: 'fr', name: 'French' }, { code: 'be', name: 'Белорусский' } ] ) );
Здравствуйте,
I suggest to use React.Fragment
instead wrapping text with <span>
. As you said - span is not best way to add text. Since React got this method, it is more useful. Of course, for compatibility with previous versions, you can add check for React version, or Fragment availability, and fallback to <span>
. What do you think? And if you don't have time I could make it, it won't take much time.
And some flood - thank you guys for your efforts =)
When I'm trying to add this package using yarn I have the following:
yarn add redux-react-i18n
yarn add v1.6.0
(node:18827) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[1/4] 🔍 Resolving packages...
error Received malformed response from registry for undefined. The registry may be down.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Hi, Dmitry!
Upgrade please your package up to babel 7.x.x. In project which I am working for now is used babel 7 ( and there isn't babel-runtime package as dependency ), so obviously it fails with building.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.