Description
This module is provided as is. Use it on your own risks.
Brief:
Module can collect all used strings from you source code.
According to configured locales creates default locale overwriting existing data and appends keys to other locales, that way if the key in translation exists, it wont be overwritten.
Can ignore folders, pass them to parser config.
The best use(currently the only) is with passport middleware and express-session module.
Installation
Install module:
const lazyl10n =
Initialization
Init module:
// Init module after passport and sessions middleware// Use it as middleware// My working exampleapp
Usage:
// For usual casereq// For ngetTextreq // I have 5 kittens and thats awesome!