hapi-get-locales
v0.1.0
Published
A util function for getting the request languages from the Hapi request object
Downloads
3
Readme
hapi-get-locales
const getLocales = require('hapi-get-locales');
// ...
server.route({
path: '/myroute',
handler: function(request, reply) {
const locales = request.plugins.getLocales;
// ['en_US', 'en']
}
});