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 29 replies, has 2 voices.

Last updated by nxl1107 3 months, 3 weeks ago.

Assigned support staff: Raja Mohammed.

Author Posts
June 11, 2019 at 5:40 am #3991949

nxl1107

How do i change locale slug(URL)?
I added chinese traditional language and this locale "zh_TW" but i wanna change "tw".
I tried on "Edit Languages" but i can't change that.

June 11, 2019 at 6:35 am #3992117

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi there,

Please respond to this forum, if you still need assistance.

Kind regards
Raja

June 11, 2019 at 7:44 am #3992881

nxl1107

Please assistance this question.
Thanks.

June 11, 2019 at 12:09 pm #3994965

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Please share temporary access to your site I can quickly check this for you, I have enabled private fields for you to securely share the details.

Kind regards
Raja

June 12, 2019 at 4:49 am #4000205

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I am unable to access the site dashboard, Please see the attached screenshot.

Regards
Raja

June 12, 2019 at 8:46 am #4002061

nxl1107

Sorry, i changed setting.
please access again.

June 12, 2019 at 1:02 pm #4004523

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I am able to change the locale without any issue. Can you please verify the same, Or please point out the fact whichever I am missing.

Please refer to the video hidden link

Let me know if you need further assistance.

Kind regards
Raja

June 12, 2019 at 1:24 pm #4004689

nxl1107

I chaged that but i can't change...

June 13, 2019 at 4:23 am #4009379

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thanks for the clarification, The language section in the URL is from the language code section which cannot be changed in the existing language. The default locale is useful for search engines and SEO purpose.

As an alternative, you can create a new custom language with any code you want. Visit WPML>>Languages>>Edit Languages for adding new languages(take a full site backup before this action). Please check the following tutorial for more details.

https://wpml.org/documentation/support/editing-wpmls-languages-table/

I hope this helps you better.

Kind regards
Raja

June 13, 2019 at 6:49 am #4009713

nxl1107

Thank you for reply.
I wanna use URL "/tw/" for Taiwan.
Is this problem for SEO when i added a new custom language and use "Traditional Chinese" for Taiwan(tw)?

June 13, 2019 at 7:32 am #4010113

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

There won't be any issues with site indexing, I would suggest adding the default Locale for your custom language as "zh-Hans-TW" and the language code as "tw" as you have decided it for the URL.

Since the locale zh-TW is already available in our database it cannot be added again.

Reference : hidden link

I hope this helps you better.

Kind regards
Raja

June 13, 2019 at 10:03 am #4011583

nxl1107

Thank you for reply.
I added a Taiwan language. is this ok? and is this allright for SEO of Taiwan?

June 13, 2019 at 11:47 am #4012457

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

That seems to be good to me, However, I would request consulting with an SEO specialist for better clarification.

Kind regards
Raja

June 13, 2019 at 1:09 pm #4013161

nxl1107

OK. thanks.
I found this page(hidden link)

I should add this code but my websites source code is all added code.
<link rel="alternate" hreflang="lang_code"... >

Can i add only one?

June 13, 2019 at 1:13 pm #4013191

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi there,
Sorry, I missed that, Please change the hreflang to zh-hans-TW as well.
It can be changed from the language edit section.

Kind regards
Raja