Skip to content

RuntimeLocalizable helps to switch your app's localization in runtime (using existing localization strings).

License

Notifications You must be signed in to change notification settings

MobileToolkit/RuntimeLocalizable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RuntimeLocalizable

Carthage Compatible

RuntimeLocalizable helps to switch your app's localization in runtime (using existing localization strings).

Requirements

  • iOS 8.0+
  • Xcode 8.0+
  • Swift 3.0+

Installation

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate RuntimeLocalizable into your Xcode project using Carthage, specify it in your Cartfile:

github "MobileToolkit/RuntimeLocalizable" ~> 1.0

Run carthage update to build the framework and drag the built RuntimeLocalizable.framework into your Xcode project.

Manually

If you prefer not to use either of the aforementioned dependency managers, you can integrate RuntimeLocalizable into your project manually.


Usage

Selecting runtime language

import RuntimeLocalizable

Bundle.setLanguage("pl")

// now you can print it as usual
let someText = NSLocalizedString("Some example text...", comment: "")

Reseting to system language

import RuntimeLocalizable

Bundle.resetLanguage()

For more example usages please check the ExampleApp.

License

RuntimeLocalizable is released under the MIT license. See LICENSE for details.

About

RuntimeLocalizable helps to switch your app's localization in runtime (using existing localization strings).

Resources

License

Stars

Watchers

Forks

Packages

No packages published