FusionAuth / fusionauth-issues

FusionAuth issue submission project
https://fusionauth.io
91 stars 12 forks source link

[Bug]: non-translated text in consent form #2817

Closed robotdan closed 1 month ago

robotdan commented 4 months ago

What happened?

The following copy in the themed page for consent cannot be translated by a simple theme because the English version is hard coded in the template.

<p><em>${application.name}</em> would like to:</p>
  1. We could move this entire thing into the bundle as %s would like to:
  2. We could keep them separate and just add copy for would like to:
  3. Or it may be preferred to leave : separate since we have separators already defined as a translatable value, see propertySeparator.

Example in account/webauthn/add.ftl

 <strong>${theme.message("warning")}${theme.message("propertySeparator")}</strong>

This way the one building the localization doesn't have to find all separators in the copy, and instead can just update the single value in the message bundle.

Version

1.51.1

Affects Versions

= 1.50.0