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

Would you like to add optional parameters for transform? #210

Open
PB-1996 opened this issue Nov 21, 2020 · 0 comments
Open

Would you like to add optional parameters for transform? #210

PB-1996 opened this issue Nov 21, 2020 · 0 comments

Comments

@PB-1996
Copy link

PB-1996 commented Nov 21, 2020

Problem Statement

I want to make custom name for SwiftGen enum instead of L10n. SwiftGen supports custom type name for generation, but BartyCrouch transform method can use only L10n name for "swiftgenStructured" transform.

Suggested Solution

Add optional parameters dictionary. For example: transformerParameters
You could describe supported parameters for each transform method. So for "swiftgenStructured" you could define type parameter key.

Example Usage

This way setup would look like:

[update.transform]
codePaths = ["."]
localizablePaths = ["."]
transformer = "swiftgenStructured"
supportedLanguageEnumPath = "."
typeName = "BartyCrouch"
translateMethodName = "translate"

[update.transform.transformerParameters]
type = "Localization"

Possible Involvement

  • I could help with implementation:
  • I could help with testing:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant