The project is in a healthy, maintained state
Plugin to generate .strings files with swift (SwiftGen compatible) comments and marks format, and escaping percent symbol.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.1.3
 Project Readme

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