Skip to content

Conversation

@antagoony
Copy link
Contributor

@antagoony antagoony commented Nov 28, 2025

🤔 What's changed?

Following the discussion of Getting knowledge about the current Locale within any custom @DefaultParameterTransformer plus your responses within my first propose, this is the new PR providing the feature's Locale information for @DefaultParameterTransformer methods.

Similar to the 1st approach, this PR adds support for two more method signatures as your propose but now refers to the LocaleParameterByTypeTransformer that will be merged into "cucumber/cucumber-expressions" by this PR separately.

Since I do not know the version of the upcoming "cucumber-expressions" release, I used a "18.0.2-SNAPSHOT" locally to see everything works fine. This PR must either be released simultaneously with the LocaleParameterByTypeTransformer PR or must even wait for a new "cucumber-expressions" release before being merged.

Please note, this is also the reason why the automatic build (see below) will fail. Currently, the LocaleParameterByTypeTransformer cannot be found and compiling should fail obviously.

⚡️ What's your motivation?

See issue "Getting knowledge about the current Locale within any custom @DefaultParameterTransformer" (cucumber/cucumber-expressions#376).

🏷️ What kind of change is this?

  • ⚡ New feature (non-breaking change which adds new behaviour)

♻️ Anything particular you want feedback on?

Yes, please see this this comment within the origin issue.

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

@antagoony antagoony force-pushed the feature/adapt-locale-parameter-by-type-transformer-of-cucumber-expressions branch from 22e9a6b to dae622e Compare November 28, 2025 21:16
@antagoony
Copy link
Contributor Author

According to my comment within the origin issue I investigated for a more generic solution -- and I think I found one. In result, I close this PR and will propose a new one very soon.

@antagoony antagoony closed this Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant