i18n-node-hapi

1.0.0 • Public • Published

i18n-node-hapi

A hapi plugin for i18n support using mashpie/i18n-node

Usage

server.pack.register({
    plugin: require('i18n-node-hapi'),
    options: {
        locales:['en', 'de'], 
        directory: __dirname + '/locales'
    }
});

Options are passed directly to mashpie/i18n-node. See configuration options for more information.

Roadmap

v1.0.0 - add i18n methods to view context

Package Sidebar

Install

npm i i18n-node-hapi

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • christriddle