Interpolation allows dynamic values to be used within translations. Interpolation is used where a value is uncertain, dynamic or susceptible to change. It is also used with pluralisation.
In the JSON file, we use {{ }} brackets to indicate where we will be using interpolation. This value will change depending on our provided value in the translation hook.
user_pet: "I have a pet {{animal}}"
Our code where the translation key is rendered:
t('user_pet', {animal: "cat"})
The code will now appear as:
"I have a pet cat"