Domanda

In my case, there are three languages for my site. In backoffice, Product management, I have only one textarea to product description. Obviously, one description in english is not suitable to my chinese and franch site. So i add three columns in Entity product

description_en, description_fr, description_cn

than I do description_%local% to show them in View twig.

Is there another solution to do this ? thank you very much for sharing your opinion.

È stato utile?

Soluzione

Yes, you can use doctrine translatable extension. Take a look at this PR as an example https://github.com/Sylius/Sylius/pull/110

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top