Skip to content

A simple generator of swift files from a given localized strings POeditor file

License

Notifications You must be signed in to change notification settings

masmovil/poeditor-parser-swift

 
 

Repository files navigation

POEditor-Parser

A simple generator of swift files from a given localized POeditor strings file.

Release Version Release Date GitHub codecov

Installation

POEditor-Parser is available through Mint

To install it, simply add the following line to your Mintfile:

masmovil/poeditor-parser-swift@v2.0.3

Usage

/bin/poe $APITOKEN $PROJECTID $LANGUAGE

Options:

  • --apitoken - The POEditor API token
  • --projectid - The id of the project in POEditor
  • --projectlanguage - The language code in POEditor
  • --onlygenerate [default: false] -
  • --swiftfile [default: Sources/Literals.swift] - The output Swift file directory.
  • --stringsfile [default: Sources/Localizable.strings] - The output Strings file directory.
  • --typename [default: Literals] - The type name that store all localized vars
  • --tablename - The tableName value for NSLocalizedString
  • --outputformat [default: Struct] - The output format for swift file (enum or struct)
  • --keysformat [default: UpperCamelCase] - The format for the localized key

Run poe help for more info

Authors & Collaborators

License

POEditor-Parser is available under the Apache 2.0. See the LICENSE file for more info.

Android alternative

If you want a similar solution for your Android projects, check this out: poeditor-android-gradle-plugin

About

A simple generator of swift files from a given localized strings POeditor file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 99.0%
  • Ruby 1.0%