Skip Navigation

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

Problem:
You are trying to change the default language code from 'en' to 'us' in WPML, but the documentation does not provide information on how to do this.
Solution:
Firstly, it's important to note that you cannot change an existing language code directly. However, you can assign or change the language code to existing content by following the instructions here: https://wpml.org/faq/how-can-i-assign-or-change-language-code-to-existing-content/
After addressing the above, you can change the default language by:
1. Navigating to WPML > Languages > Site Languages.
2. Clicking on the "Change Default Language" button and switching to the desired language.
3. Going to WP > Settings > Permalinks and resaving the permalinks.

If this solution does not apply to your case, or if it seems outdated, we 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. If further assistance is needed, please open a new support ticket at WPML support forum.

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 0 voices.

Last updated by Bruno Kos 1 week, 5 days ago.

Assisted by: Bruno Kos.

Author Posts
January 15, 2025 at 1:51 pm #16597523

eventzillaA

Background of the issue:
I am trying to change the default language code from 'en' to 'us' for the default language, which is English. Currently, the URL structure is hidden link. I want to update it to hidden link. I have followed the documentation, but it does not include any information about changing the default language code.

Symptoms:
The documentation does not provide information on changing the default language code.

Questions:
How can I change the default language code from 'en' to 'us' in WPML?

January 15, 2025 at 1:56 pm #16597555

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

Thank you for contacting WPML support!

It is not possible to change already existing code, but have a look at this:
https://wpml.org/faq/how-can-i-assign-or-change-language-code-to-existing-content/

Regards,
Bruno Kos

January 15, 2025 at 2:00 pm #16597562

eventzillaA

I am trying to change the default language code from 'en' to 'us' for the default language, which is English. Currently, the URL structure is hidden link. I want to update it to hidden link. I have followed the documentation, but it does not include any information about changing the default language code.

January 15, 2025 at 2:12 pm #16597617

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

After you performed the above, you can change default language:

1. Go to WPML > Language > Site Languages
2. Click on "Change Default Language" button and Switch to the one that you want
3. Go to WP > Settings > Permalinks > Resave Permalinks.