Skip to content Skip to sidebar

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

Problem:
The client is experiencing issues with setting the language slug for Britain to /uk instead of en-GB.
Solution:
We recommend activating Ukrainian in WPML → Languages. Then, edit the Ukrainian language, changing the language name, locale, and other settings to English. If a warning appears about the English locale being in use, edit the English language to change its default locale to free up the English locale. This allows you to assign it to another language. Since the language code 'uk' is pre-configured for Ukrainian and cannot be changed, this method is necessary. For detailed steps, please visit Editing WPML's Languages Table.

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 issues persist, please open a new support ticket.

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 2 replies, has 1 voice.

Last updated by Andrey 3 weeks, 2 days ago.

Assisted by: Andrey.

Author Posts
March 2, 2026 at 7:07 pm #17866175

martinR-113

I am having issues with my language slug i would like for example for britain to be /uk instead of en-GB

March 2, 2026 at 7:16 pm #17866188

martinR-113

how can i fix my slug from /en-gb to uk and so on for other languages

March 2, 2026 at 9:10 pm #17866292

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

Thank you for contacting WPML support.

The language code uk is already assigned to another language — specifically, to the default pre-configured Ukrainian language in WPML.

To make a change, activate Ukrainian in WPML → Languages. Edit the Ukrainian language and change the language name to English, the locale to English, and the rest to English.

You might get a warning message stating that the English locale is already in use when attempting to change it in Ukrainian language. In that case, you need to edit the English language and change the default locale to something else. Once the default locale is free, you can assign it to another language.

Since the language code uk already exists and cannot be changed, that is the only way to do it.

https://wpml.org/documentation/getting-started-guide/language-setup/editing-wpmls-languages-table/#add-custom-languages