Skip to content

Conversation

@brionmario
Copy link
Member

Purpose

This pull request updates the @asgardeo/react package to allow consumers to control whether translation strings are resolved or left as i18n keys when using render props. The main change is the introduction of a new option, resolveTranslations, in the flow transformation utilities and their usage in sign-in and sign-up components. This gives more flexibility to consumers who need to handle translations differently, especially in advanced use cases with custom rendering.

Flow transformation and translation handling improvements:

  • Added a new resolveTranslations option to the FlowTransformOptions interface and updated the transformComponents and normalizeFlowResponse functions in flowTransformer.ts to support optionally resolving translation strings or keeping i18n keys. [1] [2] [3]
  • Updated the SignIn and BaseSignUpContent components to set resolveTranslations: !children, so translations are only resolved when not using render props (i.e., when children is not provided). [1] [2] [3] [4]

Documentation and release notes:

  • Added a changeset describing the patch change and the new behavior for render props and i18n resolution.

Related Issues

Related PRs

  • N/A

Checklist

  • Followed the CONTRIBUTING guidelines.
  • Manual test round performed and verified.
  • Documentation provided. (Add links if there are any)
  • Unit tests provided. (Add links if there are any)

Security checks

@asgardeo-github-bot
Copy link

🦋 Changeset detected

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

@brionmario brionmario merged commit a7fc482 into asgardeo:main Dec 17, 2025
3 of 6 checks passed
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.

3 participants