Files
Karim shoair 5bc85cf768 docs: Add Arabic docs for the website
- Changed the structure to make it easier to add others soon.
- Moved the sponsors to a shared template between languages.
2026-10-16 18:47:34 +03:00

9 lines
322 B
Django/Jinja

{% set translation = "translations/" ~ locale ~ ".html.jinja" %}
{% if translation is existing_template %}
{% import translation as translated %}
{% set rendered %}{% include "_base/class.html.jinja" %}{% endset %}
{{ translated.translate(rendered) }}
{% else %}
{% include "_base/class.html.jinja" %}
{% endif %}