# xliff2strings

> A handy tool to convert Xcode-exported XLIFF file to classic strings file.

Latest version **0.2.0** (published 2023-06-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install xliff2strings
pnpm add xliff2strings
yarn add xliff2strings
bun add xliff2strings
```

Provides the command `xliff2strings`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2023-06-16 |
| First published | 2022-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Shibo Lyu |
| Maintainers | laosb |

## Links

- npm: https://www.npmjs.com/package/xliff2strings
- Repository: github.com/laosb/xliff2strings
- npm.io page: https://npm.io/package/xliff2strings

## Dependencies (4)

- [args](https://npm.io/package/args.md) ^5.0.3
- [iconv](https://npm.io/package/iconv.md) ^3.0.1
- [xliff](https://npm.io/package/xliff.md) ^6.1.0
- [i18n-strings-files](https://npm.io/package/i18n-strings-files.md) ^2.0.0

## Recent versions

- 0.2.0 (latest) — 2023-06-16
- 0.1.0 — 2022-11-10

## README

# xliff2strings

Turns Xcode-generated XLIFF files to .strings files.

## Why

For SwiftUI projects, it's more efficient to export localization from Xcode (which uses Swift compiler to extract strings) than collect them yourself. But, Weblate and many other in-flow translation platforms only supports .strings for that matter.

This quick CLI turns Xcode-generated XLIFF files (in `yourproject Localizations/*.xcloc/Localized Contents/*.xliff`) to plain .strings file, with untranslated strings filled with original text. This should be only used with source language and your translation platform should generate other .strings for corresponding languages.

## Usage

```sh
npm i -g xliff2strings
xliff2strings "yourproject Localizations/en.xcloc/Localized Contents/en.xliff"

# More options
xliff2strings help
```

## License

[MIT](https://laosb.mit-license.org).

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