NSVLocalizationKit 0.1.2

NSVLocalizationKit 0.1.2

Maintained by Narek Simonyan.



  • By
  • Narek1994

Localize directly from Storyboard or Xib

CI Status Version License Platform

Example

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

Requirements

Swift 5.0

Installation

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

pod 'NSVLocalizationKit'

About

So basically you will set localizable keys from storyboard and it will localize it, the main idea is when you have language change in app, you will have to subscribe to language change notification to update your UI. This library will automatically update any text set from storyboard, so you will not have to localize it from code, and subscribe to notifications. It is helpful when you have in app language change.

Usage

NSVLocalizationKit allows you to localize directly from Storyboard or Xib, it uses Localize-Swift and will automatically update all views, when language is changed, without any line of code written in UIViewControllers.

UIBarButtonItem

Set localized Title.

UIButton

Set localized Title.

UILabel

Set localized Text.

UINavigationItem

Set localized Title.

UISegmentedControl

Set localized Titles. Because we can't use arrays as a @IBInspectable, you will have to give string seperated with comma, for each segment. Check the example project.

UITabBarItem

Set localized Title.

UITextField

Set localized Text for text and localized Placeholder for placeholder.

UITextView

Set localized Text.

Author

Narek1994, [email protected]

License

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