coreshop / CoreShop

CoreShop - Pimcore enhanced eCommerce
http://www.coreshop.org
Other
275 stars 157 forks source link

Order Detail Translation inconsistency #2651

Closed solverat closed 3 months ago

solverat commented 3 months ago
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no

image

As you can see, some labels are not translated correctly. When calling /admin/coreshop/order/detail?id=251 the default locale en for translation workers will be used.

Possible Solution: Use an additional translator engine (@Pimcore\Bundle\AdminBundle\Translation\AdminUserTranslator) in WorkflowStateInfoManager, which automatically tries to fetch user's locale. We can't replace the translator service, since we need it in frontend!