Get unlimited public & private packages + team-based management with npm Teams.Learn more »

tau-extract-gettext

0.6.0 • Public • Published

tau-extract-gettext

Build Status

Forked from https://github.com/mvhenten/extract-gettext

Message is properly extracted in following cases:

  • intl.formatMessage('message') - string literal enclosed in one of ` ' " quote types
  • intl.formatMessage('message1' + 'message2') - string concatenation

Message is not extracted in following cases:

  • intl.formatMessage(nonStringExpression) - any non-string argument, including var/const reference and function call

Message is not properly extracted in following cases:

  • intl.formatMessage('message' + "message ')") - concatenation of strings with different quotes when second string contains quote from first string followed by comma or closing parenthesis

Install

npm i tau-extract-gettext

DownloadsWeekly Downloads

73

Version

0.6.0

License

MIT

Last publish

Collaborators

  • avatar
  • avatar
  • avatar