![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@biesbjerg/ng2-translate-extract
Advanced tools
Extract strings from projects using ng2-translate to json or pot files.
THIS IS STILL VERY MUCH A WORK IN PROGRESS
If you only need to extract strings from one project, you can install the package locally:
npm install @biesbjerg/ng2-translate-extract --save-dev
Add the following extract
script your project's package.json
:
"scripts": {
"extract": "ng2-translate-extract --dir ./src --output ./ --format=json"
}
You can now run npm run extract
to extract strings from your project's src
dir. The extracted strings are saved in JSON
-format in your project's root.
Modify the scripts arguments as required.
You can also install the package globally:
npm install @biesbjerg/ng2-translate-extract -g
Now you can execute the script from everywhere:
ng2-translate-extract --dir /extract/from/this/dir --output /save/to/this/dir --format pot
Usage:
ng2-translate-extract [OPTIONS] [ARGS]
Options:
-d, --dir [DIR] Directory path you would like to extract strings from (Default is /Users/kim/ionic/ng2-translate-extract/bin)
-o, --output [DIR] Directory path you would like to save extracted
strings (Default is /Users/kim/ionic/ng2-translate-extract/bin)
-f, --format [VALUE] Output format. VALUE must be either [json|pot] (Default is json)
-h, --help Display help and usage details
FAQs
Extract strings from projects using ng2-translate
The npm package @biesbjerg/ng2-translate-extract receives a total of 12 weekly downloads. As such, @biesbjerg/ng2-translate-extract popularity was classified as not popular.
We found that @biesbjerg/ng2-translate-extract demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.