Multi Language Settings
You can refer the below link for User Locale.
https://symfony.com/doc/current/translation/locale.html
- Set default locale changes in config/packages/translation.yaml
- You can add or remove languages from the src/Controller/LanguageController.php Route array requirements = {"_locale"="en|es|de|it|ru"}
- You need to update or add folder of the new language in the
/translations
Folder - You simply use in the Templates / Twig File like the below example:
{% trans %}Symfony{% endtrans %}
{{ var|trans }}