Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

banana-i18n-loader

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

banana-i18n-loader

webpack loader for banana i18n messages

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

npm

banana-i18n-loader

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.

Getting Started

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.

License

MIT

Keywords

FAQs

Package last updated on 08 Nov 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc