Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.02 KB

README.md

File metadata and controls

45 lines (31 loc) · 1.02 KB

xcstrings-migrator

Convert legacy strings files to xcstrings (String Catalog). This tool can also revert xcstrings to legacy strings files.

Help

OVERVIEW: A tool to migrate the legacy strings file to xcstrings file.

USAGE: xcstrings-migrator <subcommand>

OPTIONS:
  --version               Show the version.
  -h, --help              Show help information.

SUBCOMMANDS:
  migrate (default)       Migrate legacy strings file to xcstrings file.
  revert                  Revert xcstrings file to legacy strings file.

  See 'xcstrings-migrator help <subcommand>' for detailed help.

Usage

Installation

git clone https://github.com/cybozu/xcstrings-migrator.git
cd xcstrings-migrator
swift build -c release
$ cp .build/release/xcstrings-migrator /usr/local/bin/xcstrings-migrator

Migrate

xcstrings-migrator -output-directory ~/result -path ~/original/en.lproj -path ~/original/ja.lproj

Revert

xcstrings-migrator revert -output-directory ~/result -path ~/Localizable.xcstrings