Closed immortalx closed 6 years ago
Why was this closed?
I'm using i18n-node. I'll try to describe how I'm using it:
...
const i18n = require('i18n')
i18n.configure({
locales: ['en', 'pt-br'],
directory: ${__dirname}/locales
});
// according to your rule i18n.setLocale('pt-br');
email.render('./default/html', { i18n, name: 'Elon', people });
In your pug file just do as below
```js
p #{i18n.__('key i18n')}
Is it possible to use with i18next? Any example or directions on where to configure? I'm using email-templates just to render the e-mails with renderAll
Thank you