rallahaseh / RALocalization

RALocalization provides simple yet robust right-to-left(RTL) capability for Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RALocalization

CI Status Version License Platform

RALocalization is a simple framework that improves localization in Swift iOS apps - providing cleaner syntax and in-app language switching



Example

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

Usage

Import the framework

import RALocalization

Add .swizzleClassesMethods() in AppDelegate, setter RTL methods

RALocalizer.swizzleClassesMethods()

For change language use .setLanguage(language: *required language*)
Example:

RALanguage.setLanguage(language: .hebrew)

If you have a subview with `UIImageView` just add tag (-1) to it to RTL if your using `Hebrew` or `Arabic`.

Installation

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

pod 'RALocalization'

Author

rallahaseh, rallahaseh@gmail.com

License

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

About

RALocalization provides simple yet robust right-to-left(RTL) capability for Swift

License:MIT License


Languages

Language:Shell 49.9%Language:Swift 40.7%Language:Ruby 5.0%Language:Objective-C 4.4%