Skip to content

RxLocalizer allows you to localize your apps, using RxSwift 🚀

License

Notifications You must be signed in to change notification settings

pinddFull/RxLocalizer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Swift RxSwift Platform License

RxLocalizer

RxLocalizer is a framework written in swift which allows you to localize your apps, using RxSwift.

Requirements

  • Xcode 10
  • Swift 4.2
  • iOS 10+

Installation

CocoaPods

pod 'RxLocalizer'

Usage

Before all:

import RxLocalizer

Reactive localized strings

Localizer.shared.localized("Start")
  .drive(startLabel.rx.text)
  .disposed(by: disposeBag)

Change language

You are able to set language by language code. A full list of the codes you can check here.

Localizer.shared.changeLanguage.accept("en")

Change RxLocalizer configuration

You are able to change default configuration, using changeConfiguration property.

let localizerConfig = LocalizerConfig(defaults: .standard, bundle: .main, tableName: "Localizable")
Localizer.shared.changeConfiguration.accept(localizerConfig)

License

RxLocalizer is available under the MIT license. See the LICENSE file for more info. Copyright (c) RxSwiftCommunity

About

RxLocalizer allows you to localize your apps, using RxSwift 🚀

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 82.2%
  • Ruby 11.6%
  • Objective-C 6.2%