Skip to content
Simplified and automated Localization process library in IOS. Please check https://github.com/michaelhenry/Localizr for more info.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example
Localizr.swift
.gitignore
.travis.yml
LICENSE
Localizr.swift.podspec
README.md
_Pods.xcodeproj
localizr.gif

README.md

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, me@iamkel.net

License

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

You can’t perform that action at this time.