Localizable label and buttons directly from the interface builder
Ruby Swift
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Example
Pod
web
.gitignore
.travis.yml
ALLocalizables.podspec
LICENSE
README.md
Rakefile
_Pods.xcodeproj

README.md

ALLocalizables

Version Language License Platform Twitter

Usage

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

Localizable labels directly from the interface builder

Set the baseclass of your interface UILabel or UIButton to ALLocalizableLabel or ALLocalizableButton and enter the localization string in the new available property Localize string. This will update the label directly in the interface builder, based on your localization file.

Interface Builder property

Make sure to enable Automatically Refresh Views through the menu: Editor->Automatically Refresh Views when you're in the interface builder.

Reference

This project is a result of a StackOverflow post: http://stackoverflow.com/a/27418239/1485701

Requirements

  • Xcode 8
  • iOS 8.0+

Installation

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

pod "ALLocalizables"

Swift version vs Pod version

Swift version Pod version
3.X >= 3.0.0
2.3 2.0

Author

Antoine van der Lee, contact@avanderlee.com

License

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