# Cannot change defaultContentLang to Chinese (zh)

**URL:** <https://discourse.gohugo.io/t/cannot-change-defaultcontentlang-to-chinese-zh/46201>\
**Category:** support\
**Created:** [September 14, 2023, 7:59am UTC](https://discourse.gohugo.io/t/cannot-change-defaultcontentlang-to-chinese-zh/46201 "2023-09-14T07:59:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babar\_Raza](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/babar_raza/32/20323_2.png) [@Babar\_Raza](https://discourse.gohugo.io/u/Babar_Raza)\
**Post date:** [September 14, 2023, 7:59am UTC](https://discourse.gohugo.io/t/cannot-change-defaultcontentlang-to-chinese-zh/46201/1 "2023-09-14T07:59:46Z")

</div>

I have an existing site with around 25 languages. It is working fine. Now, I have a requirement to rehost the same website on another domain while setting the Chinese language as default.

Following is my config.

```auto
defaultContentLang: zh
languages:
  zh:
    languageName: 中文
    languageCode: zh
    contentDir: content/v2/zh
    flag: flag-cn
    weight: 1
  en:
    languageName: English
    languageCode: en
    contentDir: content/v2
    flag: flag-us
    weight: 2

```

No matter what I tried, English language is show by default on site homepage. Can anyone please suggest what I am doing wrong? Thanks

---

<div class="post-metadata">

**Author:** ![sunwei](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sunwei/32/18028_2.png) [@sunwei](https://discourse.gohugo.io/u/sunwei)\
**Post date:** [September 14, 2023, 9:18am UTC](https://discourse.gohugo.io/t/cannot-change-defaultcontentlang-to-chinese-zh/46201/2 "2023-09-14T09:18:48Z")

</div>

> [@Babar\_Raza](#):
>
> `defaultContentLang`

Here is my configuration for my site with zh by default:

baseURL = ‘[https://sunwei.xyz/](https://sunwei.xyz/)’  
title = ‘sunwei.xyz’

defaultContentLanguage = ‘zh’  
[languages]  
[languages.zh]  
languageName = ‘中文’  
contentDir = ‘content’  
weight = 1

[languages.en]  
languageName = ‘English’  
contentDir = ‘content.en’  
weight = 2

config.toml github link: [https://github.com/sunwei/xyz/blob/master/config.toml](https://github.com/sunwei/xyz/blob/master/config.toml)

---

<div class="post-metadata">

**Author:** ![Babar\_Raza](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/babar_raza/32/20323_2.png) [@Babar\_Raza](https://discourse.gohugo.io/u/Babar_Raza)\
**Post date:** [September 14, 2023, 11:22am UTC](https://discourse.gohugo.io/t/cannot-change-defaultcontentlang-to-chinese-zh/46201/3 "2023-09-14T11:22:04Z")

</div>

@sunwei ,  
Thank you for your prompt answer. For some reason I was using defaultContentLang which was wrong. Changing it to defaultContentLanguage has fixed my problem. Cheers.

---

<div class="post-metadata">

**Author:** ![sunwei](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sunwei/32/18028_2.png) [@sunwei](https://discourse.gohugo.io/u/sunwei)\
**Post date:** [September 14, 2023, 12:27pm UTC](https://discourse.gohugo.io/t/cannot-change-defaultcontentlang-to-chinese-zh/46201/4 "2023-09-14T12:27:44Z")

</div>

Cheers
