Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    koa-cheerio-l20npublic

    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
    

    install

    npm i koa-cheerio-l20n

    Downloadsweekly downloads

    1

    version

    1.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar