All Collections
Bablic Help Center
How do I work with Variables?
How do I work with Variables?

Learn how to make sure Bablic knows how to handle numbers and dates correctly in your website

Gabriele Manasse avatar
Written by Gabriele Manasse
Updated over a week ago

When numbers and dates appear in a website, Bablic treats them as variables.

Take this banner for example:

Bablic will recognize the number 80 as a variable and therefore will show you this in the translation box:

As you can see, in the translation, the number 80 has been replaced by {1}.

This allows Bablic to keep the same translation even if the number 80 changes to 90 or any other number.

If you translate the number 80 simply as 80 in the translation (therefore removing the variable), Bablic will show you a messages saying that some variables are missing.

At this point you can:

  1. Continue editing. This will bring you back to the translation window and you will be able to restore the variable.

  2. Apply anyway. This will save the translation without the variable. This means that if the number changes Bablic will require a new translation for the entire sentence.

Working with multiple variables

Sometimes your content has multiple variables within the same paragraph. In this case Bablic differentiates between variables so you don't get confused. Like in this example:

As you can se the number 105 has a little "1" on top, which indicates that it's associated with variable {1}. Same goes with 120, which is associated with variable {2}. This allows you to place the variables 

Did this answer your question?