Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
react-localize-redux
Advanced tools
Localization library for handling translations in React.
npm install react-localize-redux --save
The official documentation can be found online, and is divided into the following sections:
If you are unable to upgrade to at least react v16.0.0
in your app you do have the ability to use an
older version of react, but should only be used as a last resort. The Translate component
requires the ability to render fragments and strings, which isn't available in older versions of react. See Can I use older versions of React? for workarounds to this issue.
Want to help? Contributions are welcome, but please be sure before submitting a pull request that you have first opened an issue to discuss the work with the maintainers first. This will ensure we're all on the same page before any work is done.
For additional info:
This project adheres to Semantic Versioning. Every release will be documented along with any breaking changes when applicable.
3.0.0 (June 3, 2018)
LocalizeProvider
.The Redux action creators initialize
, addTranslation
, addTranslationForLanguage
, and setActiveLanguage
have been removed. Instead they are now methods available on LocalizeContext, and can be added to your component's as props using the withLocalize higher-order component.
The translationTransform
option is no longer available as an initialize option. Instead addTranslation now takes an options object, which accepts the translationTransform
function.
initialize now takes a single options argument instead of multiple arguments.
Translate render props API now takes a single options object as an argument instead of multiple arguments.
renderInnerHtml
option now set to false
by default instead of true
.
Remove showMissingTranslationMsg
, missingTranslationMsg
, missingTranslationCallback
initialize options. THe new onMissingTranslation
option now covers all these scenarios.
Remove setTranslations
action - instead pass languages
to initialize.
Remove localize
higher-order component - use new withLoclize
higher-order component instead. Or if you only require access to translate
function use <Translate>
component instead.
If using Redux, all state related to localize will be added under the localize
key instead of locale
.
If using Redux, localeReducer
is now named localizeReducer
.
Fix typos in ADD_TRANSLATION_FOR_LANGUAGE
action (Issue #65)
FAQs
Localization library for handling translations in React
The npm package react-localize-redux receives a total of 4,681 weekly downloads. As such, react-localize-redux popularity was classified as popular.
We found that react-localize-redux demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.