Skip to content

I used BartyCrouch + SwiftGen with 'L10n' – how do I migrate the calls? #56

Answered by Jeehut
Jeehut asked this question in Help / FAQ
Discussion options

You must be logged in to vote

Yes, there certainly is a better way. Two of them, actually:

First, there's this feature request for providing a button that automatically migrates all the code over for you. Make sure to upvote on it (👍) so I can prioritize accordingly.

But in the meantime, you can make use of Xcode's find & replace functionality, here's a step-by-step guide with a well-tested Regex:

  1. First, make sure to commit any changes you might have so you can revert if things go wrong & see the changes
  2. Open your project in Xcode, then open the 🔍 Find navigator in the left sidebar
  3. Select "Replace" and "Regular Expression" in the two dropdowns above the text field
  4. Set the dropdown on the right below the first text fi…

Replies: 1 comment

Comment options

Jeehut
Oct 31, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by Jeehut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant