0.0.2 • Published 5 years ago

gettext-prado v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

gettext-prado build status

Extract translatable strings from Prado Localization Tags (i.e. <%[string]%>).

It can be used stand-alone or through xgettext-template.

API

.parse(template)

Parses the template string for Prado expressions using the keywordspec. It returns an object with this structure:

{
  msgid1: {
    line: [1, 3]
  },
  msgid2: {
    line: [2],
    plural: 'msgid_plural'
  },
  context\u0004msgid2: {
    line: [4]
  }
}

Development

Install

git clone git@github.com:smhg/gettext-prado.git
npm i

Test

npm run lint
npm test