Developer forum

Forum » Swift » Translation tags missing for password recovery / reset

Translation tags missing for password recovery / reset

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

Can translations be added for the recovery fields that are generated when resetting / recovering a password? PasswordRecovery.cshtml and PasswordReset.cshtml have code like the below:

 @foreach (LoopItem loginField in GetLoop("UserManagement:User.Login.Fields"))
 {
 <div class="form-floating @isInvalid">
 <input type="text" name="@loginField.GetString("Field.Name")" id="@loginField.GetString("Field.Name")" class="form-control" placeholder="@loginField.GetString("Field.Title")">
 <label for="@loginField.GetString("Field.Name")">@loginField.GetString("Field.Title")</label>
 <div class="invalid-feedback" for="@loginField.GetString("Field.Name")">@loginField.GetString("Field.Error")</div>
 </div>
 }
This doesn't allow translation of the placeholder and label. Could that be changed to something like this:
 @foreach (LoopItem loginField in GetLoop("UserManagement:User.Login.Fields"))
 {
 <div class="form-floating @isInvalid">
 <input type="text" name="@loginField.GetString("Field.Name")" id="@loginField.GetString("Field.Name")" class="form-control" placeholder="@Translate(loginField.GetString("Field.Title"))">
 <label for="@loginField.GetString("Field.Name")">@Translate(loginField.GetString("Field.Title"))</label>
 <div class="invalid-feedback" for="@loginField.GetString("Field.Name")">@loginField.GetString("Field.Error")</div>
 </div>
 }

Thanks!

Imar

 


Replies

 
Merethe Vrå Andersen Dynamicweb Employee
Merethe Vrå Andersen
Reply

Hi Imar,

I have created bug 16835.

BR,
Merethe

 

You must be logged in to post in the forum