Latest 0.1.0
Homepage https://github.com/bassyouni/OBLanguageManager
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Description

OBLanguageManager allows you to change the language of your app within the app and without the need to restart.Also it helps mange your localization and supports Right to left orientation for languages like Arabic, Hebrew, etc..
OBLanguageManager is easy, small, and in Swift :) .

Installation

OBLanguageManager is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'OBLanguageManager'

Usage

To get Started all you need is to add a variable with language name that equals the language code

let OBArabic: String = "ar"

then add it to ‘isSupportedLanguage’ method.

Then you can Localize a String with its key

someLabel.text = OBLanguageManager.localizedString(key: "good_morning")

To Set a Language

OBLanguageManager.setSelectedLanguage(language: "en")

To change the orientation to Right to Left

OBLanguageManager.forceRightToLeft(storyboard: storyboard,rootVCIdentifier: "root")

Note that to change the orientation you have to go back to the root view controller and change the the window.rootViewController to it. the method above does it automatically, you can do it manully and just remove the parameters

OBLanguageManager.forceRightToLeft()

Please check out the Demo for more clarification.

Author

Bassyouni, [email protected]

License

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

Latest podspec

{
    "name": "OBLanguageManager",
    "version": "0.1.0",
    "summary": "OBLanguageManager helps you manage your localization and supports Right to left orientation for languages like Arabic, Hebrew, etc..",
    "description": "OBLanguageManager allows you to change the language of your app within the app and without the need to restart.nOBLanguageManager is easy, small, and in Swift :).",
    "homepage": "https://github.com/bassyouni/OBLanguageManager",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "bassyouni": "[email protected]"
    },
    "source": {
        "git": "https://github.com/bassyouni/OBLanguageManager.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "4.2",
    "source_files": "OBLanguageManager/Classes/**/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This