
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
i18next-loader
Advanced tools
this is a webpack loader that can translate your code and generate bundle per each language
npm install --save-dev i18next-loader
i18next1: npm install --save-dev i18nexti18next.init({}) in the begining of your webpack.config.js:var i18next = require('i18next');
i18next.init({
lng: 'pl',
fallbackLng: false,
keySeparator: false,
nsSeparator: false,
saveMissing: true,
resources: {
'Hello World!': 'Siema Świecie!',
'Translate me!': 'Przetłumacz mnie',
'One plus one equals ${ 1 + 1 }': 'Jeden plus jeden jest równe ${ 1 + 1 }',
'key_0': 'elementów',
'key_1': 'element',
'key_2': 'elementy',
'key_5': 'elementów',
'key_21': 'elementy'
}
});
require:var exportsOfFile = require("i18next!./file.js");
{
test: /\.(js|jsx)$/,
loader: 'i18next-loader!react-hot!babel-loader'
}
__('Translate me!') // 'Przetłumacz mnie'
__(`One plus one equals ${ 1 + 1 }`) // 'Jeden plus jest jest równe ${ 1 + 1 }'
__('item', {count: 0}) // 'elementów'
__('item', {count: 1}) // 'element'
__('item', {count: 99}) // 'elementów'
funcName: change default function name (default is __())quotes: choose how to generates translated strings in code (default is '')lng: set i18next language (useful when having webpack config per language)FAQs
i18next loader module for webpack
We found that i18next-loader 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.