Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.03 KB

README.md

File metadata and controls

37 lines (30 loc) · 1.03 KB

swift_twine_formatter Gem Version

Twine plugin to generate .strings files with swift (SwiftGen compatible) comments and marks format.

Example usage

Simple swift formatter:

twine generate-string-file /path/to/twine.txt /path/to/output_en.strings --format swift --lang en

Swift formatter with '%' escaping ('%' -> '%%') for SwiftGen:

twine generate-string-file /path/to/twine.txt /path/to/output_en.strings --format swift-escaping --lang en

Output file:

//
// Apple Strings File
// Generated by Twine 1.1.3
//
// Language: en
//

// MARK: - Section

Installation

Install this gem:

gem install swift_twine_formatter

Then setup twine to use this plugin as described here adding the following in a twine configuration file.

gems: swift_twine_formatter