local-range

0.1.0 • Public • Published

local-range

const localRange = require('local-range');
 
localRange
  .toSubsetRanges({
    // a folder to parse (i.e. ~/project/locale)
    folder: '',
    // with languages (folders) to include (default: all)
    include: [],
    // or languages (folders) to exclude / ignore (default: none)
    exclude: [],
    // how text / sentences should be retrieved
    // (by default the message field of the lang object)
    getText: info => info.message
  })
  .then(console.log)
  .catch(console.error);

/local-range/

    Package Sidebar

    Install

    npm i local-range

    Weekly Downloads

    11

    Version

    0.1.0

    License

    ISC

    Unpacked Size

    5 kB

    Total Files

    4

    Last publish

    Collaborators

    • webreflection