hapi-get-locales

0.1.0 • Public • Published

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']
  }
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    5
  • 0.0.1
    2

Package Sidebar

Install

npm i hapi-get-locales

Weekly Downloads

1

Version

0.1.0

License

ISC

Last publish

Collaborators

  • seamusleahy