I'm trying to set Sonata pages locale to different value than my main application.
I have in my config.yml
:
parameters:
locale: ru
framework:
translator: { fallbacks: ["%locale%"] }
sonata_translation:
locales: [en, de]
default_locale: en
I expected to have main page in Russian and admin pages in English, but all pages are in Russian.
How can I change default language of Sonata Admin pages?
As far as I know, there's no such parameter sonata_translation. Sonata Admin does not have any locale/translation configuration parameters: https://sonata-project.org/bundles/admin/master/doc/reference/configuration.html
Sonata uses your application/session locale. What you can/should do, is set locale for authorized user and user will have his session in preferred language.