i18n-extractor

1.0.0 • Public • Published

i18n-extractor

This is a module/command line application to parse Javascript and search for nodes of the form i18n('literal string'), printing out all such strings it finds. (The function name can be customized.)

It allows multiple arguments to the magic function, but it only cares about the first one. Zero arguments is too few.

Install

npm install i18n-extractor

Usage

$ i18n-extract file.js
{"":["translate me","keep translating me"]}

et cetera

If there's something you want, then do it and send me a pull request (please).

Readme

Keywords

none

Package Sidebar

Install

npm i i18n-extractor

Weekly Downloads

4

Version

1.0.0

License

BSD-2-Clause

Unpacked Size

4.39 kB

Total Files

5

Last publish

Collaborators

  • goffrie
  • jwalton