Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
banana-i18n-loader
Advanced tools
A webpack loader for banana-i18n message files.
This loader resolves the fallback messages when certain messages are not localized yet. For example, in fr
locale suppose only 5 messages are localized while the source locale en
has 10 messages. The fr.json provided by this loader will have 10 messages and 5 messages that are not localized will be taken from en.json
The locale fallback is based on banana-i18n fallback chain logic.
To begin, you'll need to install banana-i18n-loader
:
$ npm install banana-i18n-loader --save-dev
index.js
import fr from '@/i18n/fr.json';
webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.json$/,
include: [path.resolve(__dirname, "i18n")],
use: [
{
loader: 'banana-i18n-loader',
},
],
},
],
},
};
And run webpack
via your preferred method.
FAQs
webpack loader for banana i18n messages
The npm package banana-i18n-loader receives a total of 3 weekly downloads. As such, banana-i18n-loader popularity was classified as not popular.
We found that banana-i18n-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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.