L20n server side localizer for koa-cheerio-template
- no code
- via data-l10n-id html attribute
npm install koa-cheerio-l20n
index.html
<p data-l10n-id="hello"></p>
locales/en.l20n
<hello "Hi!">
main-app.js
let localizer = require('koa-cheerio-l20n');
app.use(localizer({root: 'locales/'}));
see L20n for more information
# License
MIT