Skip to content
Localize directly from Storyboard or Xib, it will automatically update all texts after in app language changing, without any line of code
Swift Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example added example view controller Sep 24, 2019
NSVLocalizationKit added check that if localization key is nil, will not update TextFiel… Sep 24, 2019
.gitignore Initial commit Sep 20, 2019
.travis.yml Initial commit Sep 20, 2019
LICENSE Initial commit Sep 20, 2019
NSVLocalizationKit.podspec
README.md
_Pods.xcodeproj
localization.gif

README.md

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, nareksimonyan94@gmail.com

License

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

You can’t perform that action at this time.