Skip to content

RollnCode/RxLocalization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RxLocalization

Usage

RxLocalization allows you to easily localize your application with Rx. You will never care again about complexity of user-driven language changes.

Define your Localizable.strings as always. But instead of

@IBOutlet weak var doneButton: UIBarButtonItem!
...
doneButton.title = NSLocalizedString("STR_DONE", comment: "")

you are able to write

import RxL10n
...
@IBOutlet weak var doneButton: UIBarButtonItem!
...
L("STR_DONE")
    .bind(to: doneButton.rx.title)
    .disposed(by: disposeBag)

And when your user wants to change language of the application just do:

Localization.current.value = Localization(langCode: "pl")

All other magic Rx will do for you for free.

Requirements

This library depends on RxSwift and Foundation.

Installation

Add this to Cartfile

github "RollnCode/RxLocalization"

And run

$ carthage update

License

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

About

No description, website, or topics provided.

Resources

License

Stars

2 stars

Watchers

3 watching

Forks

Packages

 
 
 

Contributors