
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
@borealisgroup/i18n-dev
Advanced tools
The purpose of this package is an attempt to make the implementation of localization as easy as possible. It exports a config that connects [react-i18next](https://github.com/i18next/react-i18next) with [locize](https://www.locize.io/). The big benefit is
The purpose of this package is an attempt to make the implementation of localization as easy as possible. It exports a config that connects react-i18next with locize. The big benefit is that your language keys are automatically uploaded to locize whenever you add or change them in your code editor.
The localization files will come from the cloud, this is something we don't want in production since it will create a single point of failure if we use this package across multiple project so Don't use this package in production mode. Use then the i18n-prod package
This package is just a config file so read the i18next react and i18n next docs to know all the posibilities
yarn add @borealisgroup/i18n-dev
yarn add react-i18next
src/i18n
src/i18n
folder with the following name: I18ndev.jsx
. Paste in this file the following code:/* src/i18n/I18ndev.jsx */
import React from 'react';
import i18nConfig from '@borealisgroup/i18n-dev';
import { I18nextProvider } from 'react-i18next';
const I18n = ({ children }) => {
const i18nOptions = i18nConfig(
<Your locize project ID>,
<Your locize API KEY>,
);
return <I18nextProvider i18n={i18nOptions}>{children}</I18nextProvider>;
};
export default I18n;
src/i18n
folder. Paste in this file the following code:export { default as I18n } from './I18nDev';
/* App.jsx */
import React, { Suspense } from 'react';
...
import { I18n } from 'i18n';
...
const App = () => (
...
<I18n>
<Suspense fallback={<div />}>
...
</Suspense>
</I18n>
...
);
export default App;
/* code snippet from the example app */
/* ANY React COMPONENT WHICH IS A CHILD OF i18n */
import React from 'react';
...
import { useTranslation } from 'react-i18next';
...
const TodoForm = ({ onSubmit, onChange, value }) => {
const { t } = useTranslation('TODO'); /* Here the namespace is TODO. */
return (
<StyledForm onSubmit={onSubmit}>
<TextInput
placeholder={t('FORM.PLACEHOLDER')}
onChange={onChange}
value={value}
labelText={t('FORM.TITLE')}
/>
<StyledAddButton>{t('FORM.SUBMIT')}</StyledAddButton>
</StyledForm>
);
};
...
export default TodoForm;
FAQs
The purpose of this package is an attempt to make the implementation of localization as easy as possible. It exports a config that connects [react-i18next](https://github.com/i18next/react-i18next) with [locize](https://www.locize.io/). The big benefit is
The npm package @borealisgroup/i18n-dev receives a total of 0 weekly downloads. As such, @borealisgroup/i18n-dev popularity was classified as not popular.
We found that @borealisgroup/i18n-dev demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.