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