apeman-middleware-locale
Locale loader for apeman
Installation
$ npm install apeman-middleware-locale --save
Usage
create an middleware instance and attach to server settings like $api
of apeman projects.
Apemanfile.js
/** This is an example Apemanfile to use apeman-middleware-locale */ 'use strict' const loc = moduleexports = $pkg: /* ... */ $api: /* ... */ $middlewares: loc {}
Signature
apemanMiddlewareLocale(options) -> function
Create an middleware function
Args
Name | Type | Default | Description |
---|---|---|---|
options | Object | {} | Optional settings |
License
This software is released under the MIT License.