Skip to content

korbai/koa-cheerio-l20n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

koa-cheerio-l20n

L20n server side localizer for koa-cheerio-template

Features

  • no code
  • via data-l10n-id html attribute

Installation

npm install koa-cheerio-l20n

Example

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

About

L20n localizer for koa-cheerio-template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published