TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jun 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Nicolas Mahé.
[![CI Status](http://img.shields.io/travis/Nicolas Mahé/NMLocalize.svg?style=flat)](https://travis-ci.org/Nicolas Mahé/NMLocalize)
To run the example project, clone the repo, and run pod install
from the Example directory first.
NMLocalize is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "NMLocalize"
To extract localizable string (eg: L("your_localizable_string")
) from all your swift files, you can use the ExtractLocalizableString.exec
bin from this repo.
$ ExtractLocalizableString.exec arg1 arg2 (arg3) (arg4)
Argi1 is the path to the project where the swift file are. Be carefull to put an /
at the end of the path.
Argi2 is the path to the localizable file.
Argi3 is optional and force the value of new Localizable string
Argi4 is optional and indicate if unused strings should be remove. should be a bool
$ ExtractLocalizableString.exec /path/to/your/project/ /path/to/your/project/fr.lproj/Localizable.strings TO_TRANSLATE true
Nicolas Mahé, [email protected]
NMLocalize is available under the MIT license. See the LICENSE file for more info.