2

Is there anyway to make the labels of Ui components added to the checkout via layout.xml (static) or LayoutProcessor (dynamic) inline translatable?

I tried adding translate="true" to the xml element so it'd look like below but it does not work. <item name="label" xsi:type="string" translate="true">Label1</item>

In the LayoutProcessor I changed the 'label' => 'Label1', to 'label' => __('Label1'), there's no luck either.

1 Answer 1

0

Looks like they are not inline translatable. But can be translated using language .csv files when you add translate="true" to the label node.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.