Skip to content

sergeirr/swift_twine_formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages