babel-gettext-extractor
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "babel-gettext-extractor", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": " Extract gettext string with babel", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# babel-gettext-plugin | ||
# babel-gettext-extractor | ||
@@ -13,3 +13,3 @@ Extract gettext string with babel support syntax JSX, ES6, ... It is based on | ||
babel.transform(code, { plugins:["babel-gettext-plugin"]}); | ||
babel.transform(code, { plugins:["babel-gettext-extractor"]}); | ||
``` | ||
@@ -21,3 +21,3 @@ | ||
``` | ||
babel --plugins babel-gettext-plugin code.js | ||
babel --plugins babel-gettext-extractor code.js | ||
``` | ||
@@ -34,3 +34,4 @@ | ||
functionNames: <Object>, | ||
fileName: <String> | ||
fileName: <String>, | ||
baseDirectory: <String> | ||
} | ||
@@ -63,2 +64,11 @@ } | ||
### fileName ### | ||
The filename where the end result is placed. | ||
### baseDirectory ### | ||
If provided, then file names are chopped off in relation to this base path | ||
if filenames start with that path. | ||
License | ||
@@ -65,0 +75,0 @@ ======= |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15707
74