Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@biesbjerg/ng2-translate-extract
Advanced tools
Extract translatable (ng2-translate) strings and save as a JSON or Gettext pot file. Merges with existing strings if the output file already exists.
Install the package in your project:
npm install @biesbjerg/ng2-translate-extract --save-dev
Add an extract
script to your project's package.json
:
"scripts": {
"extract": "ng2-translate-extract --dir ./src --output ./ --format=json --clean"
}
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.
Usage:
ng2-translate-extract [OPTIONS] [ARGS]
Options:
-d, --dir [DIR] Directory path you would like to extract strings from (Default is current directory)
-o, --output [DIR] Directory path you would like to save extracted
strings (Default is current directory)
-f, --format [VALUE] Output format. VALUE must be either [json|pot] (Default is json)
-r, --replace BOOLEAN Replace the contents of output file if it exists
(Merges by default)
-c, --clean BOOLEAN Remove obsolete strings when merging
-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 26 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.