문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top