Skip to content

Extract gettext strings from intl.formatMessage('literal') and intl.formatHtmlMessage('<b>literal</b>') functions in any source

License

Notifications You must be signed in to change notification settings

TargetProcess/tau-extract-gettext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Extract gettext strings from intl.formatMessage('literal') and intl.formatHtmlMessage('<b>literal</b>') functions in any source

Resources

License

Stars

Watchers

Forks

Packages

No packages published