This thread is resolved. Here is a description of the problem and solution.
Problem:
I am using the Theme and plugins localization screen to scan for strings to translate, but it does not pick up strings in .twig templates, for example:
{{ __('Example heading to translate', 'example-domain') }}
How can we translate the strings in all the .twig files in the theme, ideally from the String translation screen?
Solution:
Can you please try to go to WPML -> String Translation and enable the option: Look for strings while pages are rendered.
Then try to access the site somewhere that text is available and go back to the String Translation screen to see if those texts will be available for translation now.
Don't forget to uncheck that option once you're done.
Relevant Documentation:
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/
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 contains 3 replies, has 2 voices.
Last updated by 1 year, 9 months ago.
Assisted by: Mateus Getulio.