# @inghamdev/xlf-merge

> Command-line tool for merging XLF files

Latest version **1.0.11** (published 2021-01-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @inghamdev/xlf-merge
pnpm add @inghamdev/xlf-merge
yarn add @inghamdev/xlf-merge
bun add @inghamdev/xlf-merge
```

Provides the command `xlf-merge`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.11 |
| Published | 2021-01-14 |
| First published | 2021-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Brendan Ingham |
| Maintainers | breningham |
| Keywords | XLIFF, XLF, Merge, Tool, Angular |

## Links

- npm: https://www.npmjs.com/package/@inghamdev/xlf-merge
- Repository: https://github.com/breningham/xlf-merge
- Homepage: https://github.com/breningham/xlf-merge#readme
- Issues: https://github.com/breningham/xlf-merge/issues
- npm.io page: https://npm.io/package/@inghamdev/xlf-merge

## Dependencies (3)

- [xml-js](https://npm.io/package/xml-js.md) ^1.6.4
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.4
- [commander](https://npm.io/package/commander.md) ^6.2.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.11 (latest) — 2021-01-14
- 1.0.10 — 2021-01-13

## README

# xlf-merge

## Forked from <https://github.com/jaroslavsvak/xlf-merge>

Command line tool that merges any number of XLF 1.2 files.

Useful for Angular apps where the NG compiler requires single translation file per language. If your translations are organized into
many small XLF files you can run this tool to merge them before invoking Angular compilation.

## Installation

```bash
npm install -g @inghamdev/xlf-merge
```

```bash
yarn global add @inghamdev/xlf-merge
```

## Usage

- Accespts any number of input files (wildcards supported)
- Requires single output file path (-o parameter)
- If an input file contains a translation (and another input has the same target) they are merged across.

```bash
# Merges three input files into output.xlf
xlf-merge input1.xlf input2.xlf input3.xlf -o output.xlf

# Merges all language-specific XLF files in directory i18n into a file containing all translations per language
xlf-merge i18n/*.en.xlf -o all.en.xlf
xlf-merge i18n/*.de.xlf -o all.de.xlf
xlf-merge i18n/*.fr.xlf -o all.fr.xlf
```

## Author

[Brendan Ingham](https://github.com/breningham)

## License

MIT

---
_Source: https://npm.io/package/@inghamdev/xlf-merge · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
