We have created several Spanish Custom languages, Spanish for Chile, Peru, Colombia, Argentina, Mexico, etc. WordPress works fine and the website is shown in Spanish when accessing the different folders. However, the Woocomerce part (product listing, add to cart, the cart itself, etc) it's shown in English for some of those Spanish custom languages.
For instance:
AR: Works fine --> hidden link
CL: Works fine --> hidden link
CO: Works fine --> hidden link
PE: Doesnt work fine --> hidden link
I understand the issue you're having and will try my best to assist you in this matter.
Please note that translations for all static strings in WooCommerce are provided within the WooCommerce Translation (PO) file. If a translation exists in this file, it will automatically be applied without the need for manual translation of that particular string.
For the custom language versions you've created from Spanish, it seems that only the Spanish (Peru) translation is not displaying correctly. According to the WooCommerce Translation project, currently, only 20% of WooCommerce's strings are translated into Spanish (Peru), as seen here: hidden link.
This indicates that the strings appearing in English on the WooCommerce pages might not have been translated into the Spanish (Peru) language or the translations might not have been added to the translation files yet.
To fix any untranslated texts, please try the following steps and hopefully, it will help in solving the issue:
- Navigate to "WPML > Theme and Plugins Localization".
- Choose the "WooCommerce" plugin and scan the plugin for strings.
- After the scan is complete, select the "Automatically load the theme's .mo file using 'load_textdomain'" option on the same page and add "woocommerce" in the "Enter Textdomain" field. Save your changes.
- Then, go to "WPML > String Translation" and look for the untranslated string.
- If you find the string, you can add the Spanish (Peru) translation by clicking on the "+" icon.