• Hi! We have an issue on our site where the e-mails sent out by WooCommerce aren’t fully translated. I took a deep dive into this issue and I’ve yet to find a solution. Here’s the background for our site:

    • Our site is running as a multi-site WooCommerce store with each site using separate language
    • We use Loco translate to manage our translations
    • We use custom e-mail templates to send out e-mails (e-mail templates are located in our theme’s /woocommerce/ folder, as per documentation
    • Every string that uses the woocommerce domain is translated perfectly, but none of the strings that uses our theme’s domain is translated

    And now to the most important part:

    • This issue happens only when the e-mail is manually triggered by an admin
    • This issue happens only when the admin, who triggers the e-mail, has his dashboard profile language set as English. So for example when he triggers a ‘Order Completed’ e-mail on a Netherlands site, but has English as his profile languge, then the strings with out theme’s domain will be translated in English.
    • If the admin changes their dashboard profile language to Netherlands then the strings in the e-mail will be translated in Dutch.
    • I have tried removing every single plugin except WooCommerce and the problem still persists.

    I’m a developer so any technical tips at all would be helpful at this point.

    • This topic was modified 4 years, 5 months ago by martinjts.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    The process you’re describing sounds like everything is working as expected though – transactional emails from WooCommerce will take the locale of the user. In this case, the locale of the user is English (regardless of whether they’re on a Dutch subsite) which means English should be used for the emails triggered in the admin. An important note here is that it uses the locale of the logged-in user when triggering the email, not the locale of the customer that placed the order.

    As a test, create another admin account using German and then trigger an email from the Dutch website. If it’s working as I’m describing above, a *German* email should be triggered.

    Thread Starter martinjts

    (@martinjts)

    Hi, thank you for your response.

    transactional emails from WooCommerce will take the locale of the user

    I don’t think that’s the case though. Because the language is correct for every string that is using the ‘woocommerce’ text-domain, but not for our theme’s text-domain. Meaning if an admin has a language of English and they send out an e-mail from a Dutch sub-site, the user will recieve an e-mail that is mostly Dutch, except all of the strings that use our theme’s text-domain.

    Thread Starter martinjts

    (@martinjts)

    @riaanknoetze Any update on this? This issue still remains.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue with e-mail translations’ is closed to new replies.