gettext-prado
v0.0.2
Published
Extract translatable strings from Prado templates
Downloads
4
Maintainers
Readme
gettext-prado
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 [email protected]:smhg/gettext-prado.git
npm i
Test
npm run lint
npm test