Skip to content

Instantly share code, notes, and snippets.

View JorgeFrias's full-sized avatar
🍞
Coding

Jorge Frías JorgeFrias

🍞
Coding
View GitHub Profile
@JorgeFrias
JorgeFrias / An updated script for generating, merging and enforcing rules for localized strings .txt A script to generate .strings file for .swift, .m, .storyboard and .xib files by genstrings and ibtool commands, and merge them with existing translations.
Modified by Stefan Brighiu 2019 https://github.com/sbrighiu
#
Documentation / Nice to know information for less headaches:
- *IMPORTANT* Always use Base internationalisation option and not use/delete English (development language) to prevent localized string values mismatch between storyboard strings and the `en.lproj/Main.strings` file. This will allow all unsupported languages to use the Base.lproj folder strings when the language in question is not specifically supported. This will also remove the mismatch between en.lproj\Localizable.strings and <storyboard>.strings files when
- *IMPORTANT* Please delete unused `.lproj' folders for removed languages as to not lose time finding them them during Xcode error messages
- To cover all your .swift, .m, .xib and .storyboard files, please configure extra paths below under the line `#Configure these paths to cover all your coding needs`
- Please make sure you have at least one UI element with text inside your Storyboards. It will help a lot because the script uses