{% set source_lang = supported_languages["ar"] %} {% set target_lang = supported_languages["en"] %} {% extends 'base.html.twig' %} {% trans_default_domain "ShamraTranslation" %} {% block title %}{{ 'main.title'|trans }}{% endblock %} {% block stylesheets %} {{parent()}} {% endblock %} {% block body %}

{{ 'main.title'|trans }}

{# #}
{{ 'main.discription'|trans }}

{#In the following block, I firstly set the direction of the text based on the language. we are sending a variable (is rtl)#} {#with each language.#} {#Then, I set the placeholder text based on the language too. We should modify the translations file, and add the variable#} {#enter_text_LANGUAGE replacing LANGUAGE with the language code, for each language.#} {#for example, if language is en (english), we will search the file for controlPanel.enter_text_en.#} {#if not found, we use the arabic place holderinstead.#} {% set style_src = "direction:"~source_lang["dir"]~";" %}
{#
#} {#
#} {#
#} {##}
{{ 'main.buttons.translate'|trans}}
{#In the following block, I set the direction of the text based on the language. we are sending a variable (is rtl)#} {#with each language.#} {% set style_tgt = "direction:"~target_lang["dir"]~";" %}
{# #}
{% endblock %} {% block javascripts %} {{parent()}} {# define all the toasts massage with translation #} {####} {% endblock %}