Loopback i18n middleware
This is a simple middleware using mashpie/i18n package. By default is set to accept en locale and use the folder common/i18n.
Author: Roger Fos Soler (desaroger23@gmail.com)
Usage
First, install the library:
$ npm i --save loopback-i18n
Add the middleware to your middleware.json:
Or you can use it throw code:
let loopbackI18n = ;app;
Options
The options are passed directly to the mashpie package. You can see all available options here. We define this default options object: