-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vulnerabilities in the latest react-localize-redux #235
Comments
It's a shame, but the library doesn't seem maintained anymore. |
@cristianoccazinsp yea it sucks. I guess I'll have to find an alternative. |
Let me know if you find any! |
@ryandrewjohnson Any change you can update the package to fix these? Using this heavily in production |
Bump! |
Just switched to i18nreact. Def recommend it. You can opt out for the route prefixes easily. |
@jimmailcamp , any change you have some kind of sample that would help a non-react guy that have to fix a react system (get it running with vite)? |
I've set it up for next.js and Cra. Even in CRA I used 'i18next'. Just follow the documentation and u should be good to go. Heres a start: App.js Initialize initI18n() in a useEffect with empty deps array; InitI18n.js import i18n from 'i18next'; return i18n
My own translation component that wraps i18n t method: import React from 'react'; export const Translation = ({id, ...props}) => { Hope this helps |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
npm i react-localize-redux@latest
5 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:
Just run,
npm i react-localize-redux@latest
npm will report 5 high severity vulnerabilities
What is the expected behavior?
We expect that no vulnerability should be reported
We can run "npm audit fix --force" to get rid of the vulnerabilities, but that will bring the version to 2.17.5, which causes package conflicts and maybe more other problems.
Which versions of
react
andreact-localize-redux
are you using?"react": "^16.8.4",
"react-cookie": "^4.0.3",
"react-dom": "^16.8.4",
"react-localize-redux": "^3.5.3",
"react-redux": "^7.2.0",
"react-router-dom": "^5.2.0",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0",
The text was updated successfully, but these errors were encountered: