This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was unable to translate the text inside a contact form created with the Getwid plugin.
Solution:
We recommended registering the Getwid contact form blocks for translation by adding custom language configuration XML code. The client should navigate to WPML > Settings > Custom XML Configuration tab and add the following code:
<wpml-config> <gutenberg-blocks> <gutenberg-block type="getwid/contact-form" translate="1"> <key name="text"></key> </gutenberg-block> <gutenberg-block type="getwid/field-name" translate="1"> <key name="label"></key> </gutenberg-block> <gutenberg-block type="getwid/field-email" translate="1"> <key name="label"></key> </gutenberg-block> <gutenberg-block type="getwid/field-textarea" translate="1"> <key name="label"></key> </gutenberg-block> </gutenberg-blocks> </wpml-config>
After adding the code, the client should update the page in Portuguese to ensure the field texts are translated. For more information, we provided a link to our documentation on making custom Gutenberg blocks translatable: https://wpml.org/documentation/support/language-configuration-files/make-custom-gutenberg-blocks-translatable/
If this solution doesn't look relevant, please open a new support ticket in our forum: https://wpml.org/forums/forum/english-support/
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic is split from https://wpml.org/forums/topic/i-cant-seem-to-translate-the-strings-on-the-payment-method-blocks/
This topic contains 1 reply, has 2 voices.
Last updated by 1 year, 2 months ago.
Assisted by: Long Nguyen.