1. Created a custom language. Called it Spanish (Latin America). Set the code as LATAM and the default locale to es_MX. Set the language mapping to Spanish (Mexico)
2. I have DeepL assigned as my default language and I have 10 other languages which translate just fine, so I know the general system is working.
3. This error keeps showing on the translation dashboard: "The following target languages do not support automatic translations: Spanish (Latin America) To enable automatic translation map them to known languages."
4. This is confusion because I did map to Spanish (Mexico).
I have PHP experience so if I need to use any hooks, just let me know.
Thank you for the details. While you wait for my colleague to take over the ticket, I just wanted to clarify that Spanish (Mexico) is currently not supported directly by DeepL in WPML.
To proceed, you’ll need to map your custom language to a supported one, such as Spanish (regular), or alternatively, use a translation engine that supports Spanish (Mexico).
I'm confused because DeepL has Spanish (Latin America) as an option on their website. Can you direct me to any hooks that we can use to customize which language DeepL uses to translate?
I followed your link and Spanish (Mexico) is listed as one that is translated. hidden link
So, I'm confused again.
I don't need to use DeepL for Spanish (Mexico) how can I use different engines for different translations?
I'm sorry, but the link my colleague sent you is a general one about automatic translation. At the following link, you can see which languages each translation engine supports: hidden link. As you can see in the screenshot deepl-es.jpg. DeepL supports only the Spanish language with the 'es' language code. So if you want to keep using DeepL, you need to map your custom language (LATAM with the local es_MX) to Spanish (with the language code 'es'). Please see the attached screenshot map-ltam.jpg. However, if you are willing to move to our PTC translation engine, it supports Spanish (Mexico) with the 'es-mx' language code. So you can map your custom language to this language. Please note that the PTC engine is more expensive, but more accurate and reliable. We also guarantee its translation quality. You can learn about our PTC engine and automatic translation pricing in the following links. https://wpml.org/documentation/automatic-translation/ https://wpml.org/documentation/automatic-translation/automatic-translation-pricing/
Finally, you also asked: "Can you direct me to any hooks that we can use to customize which language DeepL uses to translate?"
Since DeepL does not support Spanish (Mexico) with the 'es-mx' language code, it is not a matter of a hook. So we can't offer one.
I hope that this makes things clear.
Please let me know if you have any further questions.