You can declare variables and placeholders in phrases as named arguments, like in this example t("Welcome, {username}", username=user.name)
. A variable or placeholder is enclosed in anchor brackets {your_variable}
.
You can declare variables and placeholders in phrases as named arguments, like in this example t("Welcome, {username}", username=user.name)
. A variable or placeholder is enclosed in anchor brackets {your_variable}
.