Germanized Pro was missing. I installed it now.
But it looks like the sandbox site is not sending out any eMails.
--> I installed "Check & Log Email" to see the email log.
I created a de and en order and refunded them.
You can see the eMails on "Check & Log Email" --> "View Logs"
The refund emails are correct in en and de on this sandbox site!!
When you got to WooCommcer--> Settings--> eMails--> Refunded Order and then click to the "transactions" link beside the "We hope to see you again soon." Now entry shows up. The in the refund eMails the text "We hope to see you again soon." is correct translated to de when you create a de order: "Wir hoffen, bald wieder von dir zu hören."
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Thank you for testing - yes, I will need an access.
To troubleshoot this problem, I'll install the Duplicator plugin and generate packages for further debugging purposes. I'll ensure to exclude all media files to maintain a minimal package size. You can find more information about the process here: [link](https://wpml.org/faq/provide-supporters-copy-site/). Please confirm if this approach is acceptable to you.
I also had a support case with Germanized for that issue.
Their developer debugged the problem.
This is was their answer (sorry it's in German - please translate it if needed):
Hi,
ich habe das jetzt gedebugged. Das Problem scheint darin zu liegen, dass das WooCommerce Multilingual Plugin nicht damit klarkommt, wenn im selben Request (des Versands der Mail) die Sprache bereits einmal verändert wurde und sich damit auch die locale verändert hat. WCML nutzt hier den Filter plugin_locale - der Filter wird aber nur aufgerufen, wenn die locale auch wirklich (neu) geladen wird, was in diesem Request nicht mehr der Fall ist. In diesem Zusammenhang gab es einige Änderungen in WP 6.5 - möglicherweise ist WPML damit nicht voll kompatibel? https://make.wordpress.org/core/2024/02/27/i18n-improvements-6-5-performant-translations/
can your forward that to your development. I looks like this is an issue in the WPML core?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
I sent this information to our developers. Although we don't have a solution yet, we were able to trace the issue. If you enable the Refund and Invoice emails, they will override the normal emails and attach a PDF file to the user's email.
Attaching that PDF results in the locale being somewhat changed, causing the current user locale to be used. This results in mixed languages in the user's email.
We managed to trace the issue to `\Vendidero\StoreaBill\WooCommerce\Order::maybe_cancel` in `wp-content/plugins/woocommerce-germanized-pro/packages/storeabill/src/WooCommerce/Order.php`, which calls `\Vendidero\StoreaBill\Invoice\Simple::cancel` in `wp-content/plugins/woocommerce-germanized-pro/packages/storeabill/src/Invoice/Simple.php` but the whole case is still being checked by our developers and I'm not sure when it will be resolved.