Localizr.swift 1.0.1

Localizr.swift 1.0.1

Maintained by Michael Henry Pantaleonx.



  • By
  • Michael Henry Pantaleon

Localizr.swift

CI Status Version License Platform

Preview

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

I did not write anything to all Localizable.strings files that can be found in Locales folder so that you could see how it was generated and synced using the Localizr server when you start to run this example project.

You can check the Project's Build Phases > Run Script and see how I CURL(ed) the data from the Localizr server. I do recommend to do this using CI for adhoc build distribution(not development/appstore/testflight build distribution). You should freeze the localization files during testflight build distribution or atleast enable the snapshot capability from the Localizr server.

Requirements

Installation

Localizr.swift is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Localizr.swift'

How to use it.

import Localizr_swift

To show all supported localization

Localizr.supportedLocales()

To update the current localization

Localizr.update(locale: "en")

To get the current localization

Localizr.currentLocale()

To show the localized value

"HELLO_WORLD".localized()

Author

Michael Henry Pantaleon, [email protected]

License

Localizr.swift is available under the MIT license. See the LICENSE file for more info.