Implement multi-language site using Symfony 4.4 + Sonata package page bundle

Implement multi-language site using Symfony 4.4 + Sonata package page bundle

I am working on Symfony + Sonata Page Bundle and for the single language it is working well, now I need to make the same site with the multi-language ex. English and French but I have not more ideas about how to make it work.

I have used Sonata translation + Lunatics package to make it work but my site doesn’t change Locale and not working when change /en to /fr and it is showing “Page Not Found”, however, I have created 2 sites in Sonata page bundle Page__site table and it is showing at the backend but I don’t understand how to make it working at front-end as per user-requested locale.

Please help me with the solution to make the sonata page bundle + multi-language interface.

I appreciate your help!

Source: Symfony Questions

Leave a Reply

Your email address will not be published. Required fields are marked *