Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

i18n-xlocale

Kubide14MIT0.0.1

Middleware to control i18n middleware based on X-Locale header

i18n, x-locale, express

readme

cors-express

Middleware to control i18n middleware based on a X-Locale header

Can see here more info about i18n original middleware

Installation

The best way to install it is using npm

npm install 18n-xlocale --save

Loading

var i18n = require('18n-xlocale');

Initialization and Usage

var app = express(),
    options = {};

i18n.configure(options)
app.use(i18n.use);

Options

You can see all available options in the original package: i18n

Support

This plugin is proudly supported by Kubide hi@kubide.es