Swift Localization Helper Classes

During working on one of the project, there was a requirement arrived for localization (Arabic).

For localizing the easiest solution present was to check which language is selected and than depending on the condition change accordingly. Suppose you want to change title/image of a button , you will first create outlet of that button and then in ViewDidLoad you will check selected language and than change image and title.

For me the problem was that why should i add outlet everytime for each of these control, like if i need to localize button, image, textfield, i have to create outlet only for their localization.

For avoiding all these thing i created few extensions in swift which works directly without need of creating outlets for any of the controls.

By having these files it saves me lot of time and all this done without creating any outlets.

You can find all these gist at :