levibostian / iOSBlanky

My opinionated iOS app boilerplate
MIT License
6 stars 5 forks source link

Generate Localizable.strings entries #45

Open levibostian opened 4 years ago

levibostian commented 4 years ago

It's a pain that when I need to add a new static string to the app, I need to (1) add an entry to the Strings enum (2) add an entry to the Localizable strings file. Making this be less work would be great. Even if I could have a script that adds cases to the Strings enum would be great.

Proposal

I imagine this as a script that

  1. Checks code for places I have Strings.X used but I have not defined the cases in Strings enum yet. I add them.
  2. Add entry for all Strings enums in Localizable strings file.
  3. Alphabetize order Localiazable strings file.

I see this script being something that I run manually or I run it as a build phase in XCode.