LogoLogo
Release notes
  • Welcome to WEBLATE docs
  • Get started
    • Introduction to WEBLATE
    • Sign-in and 2FA
  • User guide
    • Projects
    • Languages
    • Filter keys
    • Manage translations
      • Add or modify translations
      • Use variables in translations
      • Load translations from another project
      • Send translations to another project
      • Translate with AI
  • Release notes
    • Release notes
Powered by GitBook
On this page

Was this helpful?

  1. User guide
  2. Manage translations

Use variables in translations

Use variables in WEBLATE to personalize and standardize translation strings for dynamic content and platform elements

PreviousAdd or modify translationsNextLoad translations from another project

Last updated 24 days ago

Was this helpful?

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.

Example

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."

Insert a variable in a translation
Insert a variable in a translation