0.2.0 • Published 11 months ago

xliff2strings v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

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

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

# More options
xliff2strings help

License

MIT.

0.2.0

11 months ago

0.1.0

1 year ago