Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Files

Latest commit

d4e0273 · Feb 27, 2014

History

History
38 lines (27 loc) · 1.03 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.03 KB

TEDLocalization

Build Status

TEDLocalization will traverse your view hierarchy and localize the view's text strings. It works with UILabels, UIButtons, and UITextFields.

How to use

In your storyboard or XIB, add localization keys to your views:

Storyboard

The localization keys map to the entries you added in your Localizable.strings file:

"NAV_Title" = "Localized Title";
"SCREEN_Label" = "Localized Label";
"SCREEN_TextField" = "Localized Text Field";
"SCREEN_Button" = "Localized Button";

When everything is set up, you can call TEDLocalization to localize the views:

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [TEDLocalization localize:self];
}

Localized Storyboard