montessori-ressources / web

Montessori Ressources full stack webapp based on PHP Symfony
MIT License
2 stars 0 forks source link

Implement i18n for FR and EN #72

Closed julbrs closed 4 years ago

julbrs commented 4 years ago

Here is the multi language support.

Inside translations/ you have multiple yaml file that contains the different values for FR / EN. The templates are using a specific way to call for text:

{{'my_nomenclature' || trans }}

It will be translated with the right language.

It take by default the browser language. It is possible to switch the language with the little flag at the top right (fr or En).

2019-10-04 22 00 28

Thanks for your review !

StaudenmannM commented 4 years ago

Nice feature ! let's merge !