GithubHelp home page GithubHelp logo

mqch295 / rxlocalizer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rxswiftcommunity/rxlocalizer

0.0 0.0 0.0 3.71 MB

RxLocalizer allows you to localize your apps, using RxSwift ๐Ÿš€

License: MIT License

Swift 85.32% Ruby 9.56% Objective-C 5.12%

rxlocalizer's Introduction

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+
  • 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)

Synchronously localized strings

startLabel.text = Localizer.shared.localized("Start")

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

rxlocalizer's People

Contributors

khambir avatar krezzoid avatar mqch295 avatar taejoongyoon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.