
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
ng-extract-i18n-merge
Advanced tools
Extract and merge i18n xliff translation files for angular projects.
This extends Angular CLI to improve the i18n extraction and merge workflow. New/removed translations are added/removed from the target translation files. Additionally, translation files are normalized (pretty print, sorted by id) so that diffs are easy to read (and translations in PRs might actually get reviewd ;-) ).
ng add ng-extract-i18n-merge
ng run [PROJECT_ID]:extract-i18n-merge
# or (if you confirmed to adding an npm command):
npm run extract-i18n-merge
In your angular.json
you'll find a new target extract-i18n-merge
that can be configured with the following options:
Name | Default | Description |
---|---|---|
format | Inferred from current setup by ng add | An of xlf , xlif , xliff , xlf2 , xliff2 |
outputPath | Inferred from current setup by ng add | Path to folder containing all (source and target) translation files. |
targetFiles | Inferred from current setup by ng add | Filenames (relative to outputPath of all target translation files (e.g. ["messages.fr.xlf", "messages.de.xlf"] |
removeIdsWithPrefix | undefined | List of prefix strings. All translation units with matching id attribute are removed. Useful for excluding duplicate library translations. |
fuzzyMatch | true | Whether translation units without matching IDs are fuzzy matched by source text. |
resetTranslationState | true | Reset the translation state to new/initial for new/changed units. |
collapseWhitespace | true | Collapsing of multiple whitespaces and trimming when comparing translations sources. |
includeContext | false | Whether to include the context information (like notes) in the translation files. This is useful for sending the target translation files to translation agencies/services. |
Feedback and PRs always welcome :-)
FAQs
Extract and merge i18n xliff translation files for angular projects.
The npm package ng-extract-i18n-merge receives a total of 0 weekly downloads. As such, ng-extract-i18n-merge popularity was classified as not popular.
We found that ng-extract-i18n-merge demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.