Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to understand what 'Default Locale' means in the Languages setting page of WPML and whether it needs to match the hreflang.
Solution:
The 'Default Locale' option in WPML helps pull the translation strings from WordPress translation systems for themes and plugins that are translated there. You can check and set the correct locale for your site's language at https://translate.wordpress.org/.
It is important to note that the 'Default Locale' does not need to match the hreflang option. For more information on adding hreflang, please follow our documentation at https://wpml.org/documentation/support/adding-hreflang-wordpress/.

If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at https://wpml.org/forums/forum/english-support/.

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.

This topic contains 3 replies, has 2 voices.

Last updated by Long Nguyen 7 months, 1 week ago.

Assisted by: Long Nguyen.

Author Posts
July 4, 2024 at 12:40 am #15887380

jordanP-2

Background of the issue:
I'm trying to understand what Default Locale means in the Languages setting page of WPML. My client seems to think the Default Locale needs to match the hreflang.

Symptoms:
I can't find satisfactory information on whether the Default Locale needs to match the hreflang.

Questions:
What does Default Locale mean in the Languages setting page?
Does the Default Locale need to match the hreflang?

July 4, 2024 at 1:26 am #15887555

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Jordan,

Thank you for contacting WPML support, I’m happy to help you with this issue.

The option Default locale helps you pull the translation strings from WordPress translation systems for themes and plugins that are translated there. You can check the locale here hidden link
and set it correctly for the language on your site.

The default locale option doesn't need to match the hreflang option. Please follow the documentation https://wpml.org/documentation/support/adding-hreflang-wordpress/

Looking forward to your reply.
Thanks

July 4, 2024 at 3:40 pm #15893120
jordanP-2

Hi,
we are facing 404 error when we switch the language from english to spanish.
hidden link
please help here.

New threads created by Long Nguyen and linked to this one are listed below:

https://wpml.org/forums/topic/we-are-facing-404-error-when-we-switch-the-language-from-english-to-spanish/

July 5, 2024 at 1:14 am #15894547

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

We limit one issue per ticket only so I will split your new question into another ticket for better handling.

Thanks.