You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When replacing language keys defined in okta-signin-widget/packages/@okta/i18n/src/properties /login.properties that contain replacement references (e.g. {0}), the interpolation throws an exception when leaving out the reference.
Reproduction Steps
Update the following key:
factor.windowsHello.signin.description.specific = Sign in to {0} using Windows Hello.
to
factor.windowsHello.signin.description.specific = Sign in using Windows Hello.
and have the sign in widget show this language key.
The brandName config property may resolve this for my use case
brandName
The brand or company name that is displayed in messages rendered by the Sign-in Widget (for example, "Reset your {brandName} password"). If no brandName is provided, a generic message is rendered instead (for example, "Reset your password"). You can further customize the text that is displayed with language and text settings.
Describe the bug
When replacing language keys defined in
okta-signin-widget/packages/@okta/i18n/src/properties /login.properties
that contain replacement references (e.g.{0}
), the interpolation throws an exception when leaving out the reference.Reproduction Steps
Update the following key:
factor.windowsHello.signin.description.specific = Sign in to {0} using Windows Hello.
to
factor.windowsHello.signin.description.specific = Sign in using Windows Hello.
and have the sign in widget show this language key.
https://github.com/okta/okta-signin-widget/blob/master/src/util/loc.ts#L78
SDK Versions
7.23.0
Additional Information
No response
The text was updated successfully, but these errors were encountered: