Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Migrator from SwiftGen 'L10n' calls to ReMafoX 'Loc' calls #57

Open
Jeehut opened this issue Oct 31, 2022 · 0 comments
Open

[Feat] Migrator from SwiftGen 'L10n' calls to ReMafoX 'Loc' calls #57

Jeehut opened this issue Oct 31, 2022 · 0 comments
Assignees
Labels
Feature Request New functionality the app doesn't provide yet Size: Small Probably less than 1 week of work

Comments

@Jeehut
Copy link
Member

Jeehut commented Oct 31, 2022

Problem Statement

Users who followed the old Pro workflow and used SwiftGen in combination with BartyCrouch to localize their keys might have hundreds of L10n.Some.Key.title kind of calls in their project. As the ReMafoX structure is a little different with a .string or .locStringKey call at the end, it can take time to migrate all the keys over.

Suggested Solution

Provide a way of automatically migrating over all SwiftGen structured calls to ReMafoX calls with the click of a button. This should also work for calls with parameters like L10n.Some.Key.title(param1: 5).

Additional Considerations

As a workaround, users could use Xcode's find & replace functionality to quickly migrate all L10n calls over to ReMafoX calls. We provide a step-by-step tutorial with a Regular Expression we tested for you here:
#56

@Jeehut Jeehut added the Feature Request New functionality the app doesn't provide yet label Oct 31, 2022
@Jeehut Jeehut self-assigned this Oct 31, 2022
@Jeehut Jeehut added the Size: Small Probably less than 1 week of work label Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New functionality the app doesn't provide yet Size: Small Probably less than 1 week of work
Projects
None yet
Development

No branches or pull requests

1 participant