
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
xliff-simple-merge
Advanced tools
This program automates the merging of XLIFF files (version 1.2 and 2.0). New translations from the input file (e.g. "messages.xlf") are merged into the destination file (e.g "messages.fr-FR.xlf"), while keeping exising translations intact. Removed translations will be removed in the input file.
This can be used as post-processing to angular i18n extraction, to update translations files.
Angular users: It is recommended to not use this program directly but the custom angular tooling: ng-extract-i18n-merge
Either install via npm i -g xliff-simple-merge
or run directly with npx xliff-simple-merge
.
Options:
-i, --input-file <inputFiles...> input file(s)/merge origin(s)
-d, --destination-file <destinationFile> merge destination
-o, --output-file <outputFile> output file, if not provided "merge destination" is overwritten
-e, -exclude-file <excludeFiles...> exclude all unit IDs of the provided file(s)
-w, --overwrite-with-translated overwrite target of destination with target of source, if it's translated and destination target not
--no-match-fuzzy prevent fuzzy matching of similar units with changed id
--no-collapse-whitespace prevent collapsing of multiple whitespaces when comparing translations sources
--no-reset-translation-state prevent (re-)setting the translation state to new/initial for new/changed units
--no-replace-apostrophe prevent replacing of apostrophes (') with "'"
--debug enable debug output
-h, --help display help for command
FAQs
Merges XLIFF files
The npm package xliff-simple-merge receives a total of 5,850 weekly downloads. As such, xliff-simple-merge popularity was classified as popular.
We found that xliff-simple-merge 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.