detect-untranslated-literals

0.0.4 • Public • Published

detect-untranslated-literals

Search a React codebase for plaintext bypassing react-intl

Uses the flow-parser to traverse your codebase (start at a high-level directory) and examine all the JSX nodes for untranslated text.

npm install -g detect-untranslated-literals

Sample usage:

detect-untranslated-literals /path/to/some/directory

Output will show any strings that are not being processed by react-intl along with filename and line number.

Based quite heavily on https://github.com/RReverser/esprima-fb/blob/fb-harmony/examples/detectnestedternary.js

Readme

Keywords

none

Package Sidebar

Install

npm i detect-untranslated-literals

Weekly Downloads

1

Version

0.0.4

License

ISC

Unpacked Size

5.57 kB

Total Files

3

Last publish

Collaborators

  • pbalogh