Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emailed CSV reports are no longer localized #9737

Open
csmcneill opened this issue Nov 15, 2024 · 0 comments
Open

Emailed CSV reports are no longer localized #9737

csmcneill opened this issue Nov 15, 2024 · 0 comments
Labels
type: bug The issue is a confirmed bug.

Comments

@csmcneill
Copy link
Contributor

Describe the bug

#7938 introduced localized CSV information. Currently, if a site's language is not set to English (United States):

  1. No localization prompt renders
  2. CSVs are delivered in English

I tried reverting to older versions of WooPayments and WooCommerce core without success. This leads me to believe that recent changes in WordPress 6.7 and how it handles localization](https://developer.woocommerce.com/2024/11/11/developer-advisory-translation-loading-changes-in-wordpress-6-7/) might be the underlying cause.

Note

CSVs downloaded directly from wp-admin (e.g., fewer than 25 items) are localized as expected.

cc @mordeth

To Reproduce

  1. Access wp-admin on a site that has 25+ transactions.
  2. Navigate to Settings > General.
  3. Change the site language to Español.
  4. Navigate to Dashboard > Updates.
  5. Select the Update languages button (which may appear as Actualizar las traducciones).
  6. Navigate to Payments > Settings.
  7. Confirm that the Reporting section is visible.
  8. Navigate to Payments > Transactions.
  9. Confirm that there are 25 or more transactions.
  10. Select the Download option to trigger a CSV report sent via email.
  11. Note that no modal appears.
  12. Navigate to your email inbox.
  13. Open the Your WooPayments Export email.
  14. Download the CSV.
  15. Open the CSV.
  16. Note that the contents of the CSV are not translated.

Actual behavior

Emailed CSVs are not localized, and the process for generating localized CSV reports does not work as documented here.

Expected behavior

Downloading reports that are 25+ items prompt the user to select their preferred language, and CSV files are delivered via email

Additional context

No user reports AFAIK. Found this issue while performing other tests.

@csmcneill csmcneill added the type: bug The issue is a confirmed bug. label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

1 participant