A
A
Alexander Drozdov2018-05-08 14:33:32
symfony
Alexander Drozdov, 2018-05-08 14:33:32

How to create new RU language in sylius store?

I deployed a store on sylius, set up the Russian language everywhere in the admin panel, added countries, channels, languages, everything that is possible.
Added a new localization file messages.ru.yml Specified
the ru locale in the parameters (tried ru_RU, etc.), and the site does not take off ...
All the time it gives

An exception has been thrown during the rendering of a template ("Channel could not be found! Tip: You can use the Web Debug Toolbar to switch between channels in development.").

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Drozdov, 2018-05-08
@bagzon

Found a solution

If you use the default theme, then the language select box will automatically appear in the top-left corner of your storefront as soon as you will have more than 1 locale available.
So, in the admin panel, create the locales you need in the Configuration -> Locales page and add them to the channel you need in the Configuration -> Channels page.

In fact, go in and create a channel, but specify the code ru and the district ru, and then it will start, do not forget to clear the cache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question