Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+02:00)

This topic contains 5 replies, has 1 voice.

Last updated by andrewH-59 1 day, 7 hours ago.

Assisted by: Itamar.

Author Posts
October 29, 2025 at 7:29 pm #17530662

andrewH-59

Background of the issue:
I am trying to assign a custom language to Spanish (Mexico) on my site hidden link and have DeepL translate it. I am following the documentation at https://wpml.org/documentation/getting-started-guide/language-setup/editing-wpmls-languages-table/.

Symptoms:
Content in this language cannot be automatically translated unless you map it to a supported language.

Questions:
How can I assign a custom language to Spanish (Mexico) in WPML?
How do I configure DeepL to translate Spanish (Mexico)?

October 29, 2025 at 7:43 pm #17530694

andrewH-59

Here is what I have done.

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.

October 30, 2025 at 8:04 am #17531453

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi Andrew,

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).

You can see the list of supported languages and mappings in our documentation here:
https://wpml.org/documentation/automatic-translation/

Best,
Dražen

November 6, 2025 at 4:46 pm #17554893

andrewH-59

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?

November 6, 2025 at 5:45 pm #17554993

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I'll continue to help you with this issue.

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.

Please share your site's Debug information if you need further help with this issue. You can read about it here: http://wpml.org/faq/provide-debug-information-faster-support/

Regards,
Itamar.

deepl-es.jpg
map-ltam.jpg
November 6, 2025 at 8:46 pm #17555586

andrewH-59

How can I use PTC just for Spanish Medico and DeepL for the others?