Symfony Sonata Admin Languages โ€‹โ€‹Not Working

I install the Sonata administration package, everything works, but I donโ€™t have a language - buttons and text in the admins as in the previous example:

label.select_context, btn_filter (not a filter, but btn_filter)

and others - where can I configure the language for the sonata administrator?

+6
source share
2 answers

Enable translator in config.yml.

as.

framework: translator: { fallback: "%locale%" } 
+14
source

The Sonata administrator uses the language specified in the configuration file. But this is not your problem, the problem is that the files for translating the sonata are not included in the cache.

Clearing the cache will fix your problems:

 $ php app/console cache:clear 
+1
source

Source: https://habr.com/ru/post/956657/


All Articles