Use variables in translations
Last updated
Last updated
Certain keys support variables for translations. These variables are replaced with actual values calculated during product operation. If a key supports variables, they are displayed under the Translation field. Click the variable to include it in the translation.
The key Errors.RequiredLength [maxlength]
displays a warning about the required password length. The variable {{maxlength}}
is supported for this key. In the example provided, the variable is included in both the default English translation and custom one. When the message is displayed in the WebUI, the variable is replaced with the actual value representing the maximum number of characters allowed for user passwords.
Alternatively, the variable can be omitted to use a less detailed message, such as "The password doesn't meet the length requirement."