gettext-prado

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i gettext-prado

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

21.2 kB

Total Files

16

Last publish

Collaborators

  • domq