Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

tau-extract-gettext

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tau-extract-gettext

Extract message strings from intl.formatMessage('literal'), intl.formatHtmlMessage('literal') functions, and JSX component <FormattedMessage message="literal" />

latest
Source
npmnpm
Version
0.6.0
Version published
Weekly downloads
37
48%
Maintainers
3
Weekly downloads
 
Created
Source

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

Keywords

gettext

FAQs

Package last updated on 13 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts