Translation support
Opened this issue · 2 comments
Does it work well with translations, for an example, I have a button with text in it: {% trans "start free trial" %}
if I wrap the whole tag trans with {% front_edit "my_button" %}
will it work on other languages respectively ?
Alright, I've managed to test it on my own, correcting the question (or making a request of it):
Could you make support for translations ?
Nope, it doesn't work like that, the content of the front_edit
tag will be rendered and saved in the database. So ideally you want to pass the current language to front_edit
and have the whole content handled by django-front, e.g.
{% front_edit "my_button" request.LANGUAGE_CODE %}
<a href="#">start free trial</a>
{% end_front_edit %}
So you can change the content of your button and have a different version per language.
Makes sense?
Awesome, it makes sense now 😄 that's what I've been looking for