Swift script to create an enum to use instead of Localizable.strings strings keys.
Open the project with Xcode and build it (⌘ + B), a binary file named create_localizable_strings will be created in the root folder of the project.
Call ./create_localizable_strings with two arguments:
- (Required) the path of the
Localizable.stringsfile to use as a source for the keys - (Optional) the path of the destination file
Example:
./create_localizable_strings Boilerplate/FileSupports/en.lproj/Localizable.strings Boilerplate/Sources/Common/LocalizableStringKey.swift