i18n-node-hapi

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

Usage no npm install needed!

<script type="module">
  import i18nNodeHapi from 'https://cdn.skypack.dev/i18n-node-hapi';
</script>

README

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