Background of the issue:
I am developing a site and using WPML for translations. I have created a function in my functions.php file to output ACF select dropdown data to my WooCommerce single product page. The function includes translations for certain fields based on the current language.
function add_shortcode_before_short_description(){
echo '' . get_the_title() . '';
echo get_field('text_area');
// Default to English if language is not handled
$translated_pinnas = isset($translations[$pinnas][$current_language]) ? $translations[$pinnas][$current_language] : $pinnas;
Symptoms:
The WPML string translation doesn't work for the specific case of translating the 'surface' field. Other string translations work as expected.
Questions:
Can you assist in what the issue could be here for this certain case?
View link: link oculto
(should be EN language code)