Skip to content

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

@PB-1996

Description

@PB-1996

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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions