python - Babel Translation - Possible to pass jinja template variable into babel translation? -


i have site translated multiple languages.

take sentence example: "you must pay 1€ required law."

in swedish, translate to: "you must pay 9kr required law."

as can see amount , symbol changes depending on locale.

currently, text being translated flask babel , editing translation .po files via editor.

i pass in jinja variable, {{ amount }}, manipulated flask.

however, in translation, eng: "you must pay {{ amount }} required law." sv: "du måste betala {{ amount }} som krävs enligt lag."

the double quotation rendered is, i.e. {{ amount }}, in webpage.

is there way around this?


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -