Open cebbinger opened 3 years ago
Apparently, the plugin skips applying the translation ($string_template
) if the $target_object
is not a WC_Order
.
For my individual case, the problem seems to be solved by adding the following code before returning $formatted_string
in line 497:
else {
return $email_obj->format_string($string_template);
}
I'm not sure if that works in other configurations, too.
I tried to add and translate additional content to some emails that are sent to the user. Unfortunately, the text is not translated.
Can you reproduce this issue on default Wordpress theme (eg Storefront)?
Yes.
Can you reproduce this issue when all other plugins are disabled except WooCommerce, Polylang and Hyyan WooCommerce Polylang Integration?
Yes.
What product versions and settings are you using when this issue occurs?
Steps to Reproduce
What I Expected
I expected to see the translated additional content in the email.
What Happened Instead
I saw the original, untranslated text in the email.