hyyan / woo-poly-integration

Looking for maintainers! - Wordpress WooCommerce Polylang Integration
https://wordpress.org/plugins-wp/woo-poly-integration/
MIT License
183 stars 66 forks source link

Custom Emails locale issue #554

Closed submediax closed 3 years ago

submediax commented 3 years ago

Hi there,

I stuck with localization problem of custom email types e.g. wc_transporting_order, wc_order_status_email_*.

It would be great to make possible for users to add more email types themselves using hooks whatsoever.

In my case, I utilize WooCommerce Order Status Manager plugin where created some custom order statuses as well as corresponding emails for them. Unfortunately the polylang default language used for these emails despite of order language.

Does anyone know how make them work? Any bypass way appreciated.

Thanks!

Jon007 commented 3 years ago

This plugin is limited to translation of WooCommerce plugin, separate bridges are needed for any WooCommerce extension. You could implement for your situation by copying the type of code in: https://github.com/hyyan/woo-poly-integration/blob/master/src/Hyyan/WPI/Emails.php