Add Arabic

This commit is contained in:
Thomas 2019-08-22 13:38:24 +02:00
parent bbdccf8fe0
commit c4b0642011
2 changed files with 2 additions and 1 deletions

View file

@ -4,7 +4,7 @@
# Put parameters here that don't need to change on each machine where the app is deployed # Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters: parameters:
allowed_language: "fr|en|nl|pt-PT|pt-BR|de" allowed_language: "fr|en|nl|pt-PT|pt-BR|de|ar"
languages: "(%allowed_language%)?" languages: "(%allowed_language%)?"
services: services:
# default configuration for services in *this* file # default configuration for services in *this* file

View file

@ -45,6 +45,7 @@
<a class="dropdown-item" href="{{ path(route, {'_locale':'fr' }) }}">Français</a> <a class="dropdown-item" href="{{ path(route, {'_locale':'fr' }) }}">Français</a>
<a class="dropdown-item" href="{{ path(route, {'_locale':'de' }) }}">Deutsch</a> <a class="dropdown-item" href="{{ path(route, {'_locale':'de' }) }}">Deutsch</a>
<a class="dropdown-item" href="{{ path(route, {'_locale':'nl' }) }}">Nederlands</a> <a class="dropdown-item" href="{{ path(route, {'_locale':'nl' }) }}">Nederlands</a>
<a class="dropdown-item" href="{{ path(route, {'_locale':'ar' }) }}">العربية</a>
<a class="dropdown-item" href="{{ path(route, {'_locale':'pt-PT' }) }}">Português</a> <a class="dropdown-item" href="{{ path(route, {'_locale':'pt-PT' }) }}">Português</a>
<a class="dropdown-item" href="{{ path(route, {'_locale':'pt-BR' }) }}">Brasil</a> <a class="dropdown-item" href="{{ path(route, {'_locale':'pt-BR' }) }}">Brasil</a>
</div> </div>