We are a bit of a unique case where we are using WPML to split our site between US and UK content. So we are not really translating but cloning pages between these two versions so we can control UK and US product we review.
right now our default language is US and it goes to hidden link. I created a custom language for the UK which currently goes to hidden link. is it possible to change the en-gb to uk?
Unfortunately, once a language is created you cannot change the language 'en-gb' in your case.
What you could do is the following:
1. Create a new custom language
2. Go to WPML->Translation Management->Bulk select and duplicate into the new one from the "old" one OR since you are not creating a translation do it from the default language to make sure it's done in the proper order
Now regarding the language code 'uk' this code is being used by the pre-loaded language for Ukrainian. You could add Ukrainian and change it's default locale and hreflang along with the flag to match United Kingdom
Thanks Bobby. To expand on this, if i go through setting up Ukrainian to basically show a United Kingdom flag and language will this have any SEO implications or anything related to search results in the United Kingdom if that makes sense?
You will need to make sure to set the correct hreflang (for SEO) and the correct default locale to be able to pull from WordPress the correct language translations.
hidden link
The 2-letter region comes after the language and is optional. e.g., “en-US” for U.S. English and “en-GB” for Britain.