# Monolingual site getting "no translation bundle" warnings

**URL:** <https://discourse.gohugo.io/t/monolingual-site-getting-no-translation-bundle-warnings/6300>\
**Category:** support\
**Created:** [April 24, 2017, 12:25am UTC](https://discourse.gohugo.io/t/monolingual-site-getting-no-translation-bundle-warnings/6300 "2017-04-24T00:25:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![RickCogley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rickcogley/32/10269_2.png) [@RickCogley](https://discourse.gohugo.io/u/RickCogley)\
**Post date:** [April 24, 2017, 12:25am UTC](https://discourse.gohugo.io/t/monolingual-site-getting-no-translation-bundle-warnings/6300/1 "2017-04-24T00:25:51Z")

</div>

Hi - I have a monolingual site using Hugo v.20, but I’m getting warnings like:

```
 WARN 2017/04/24 09:07:46 No translation bundle found for default language "en" 
 WARN 2017/04/24 09:07:46 Translation func for language en not found, use default.    
 WARN 2017/04/24 09:07:46 i18n not initialized, check that you have language file (in i18n) that matches the site language or the default language.

```

… when running hugo server.

I have had `languageCode = "en-us"` in my `config.toml` to refer to it in templates, and added `defaultContentLanguage = "en"` to see what would happen, but, I’d like to get rid of errors and warnings in the log.

I see that if I _do_ have a multilingual site, I can add an `i18n` folder and language blocks to the `config.toml`. Do I need to add these for a single language to get rid of the warnings?

Any advice appreciated.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [April 24, 2017, 7:31am UTC](https://discourse.gohugo.io/t/monolingual-site-getting-no-translation-bundle-warnings/6300/2 "2017-04-24T07:31:13Z")

</div>

We may do something about those warnings (which is kind of INFO in this context), but:

A `config.toml` configures 1 or more sites. So a multilingual configuration have more than 1, but there are not much more special about it. So a 1 site configuration will also get a language setup (i.e. i18n bundles); it may not be as relevant in this case, but you may thank us in the future when you add that second language …

What I suspect you need to get rid if these warning is to just dump an empty file in:

/i18n/en.toml

---

<div class="post-metadata">

**Author:** ![RickCogley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rickcogley/32/10269_2.png) [@RickCogley](https://discourse.gohugo.io/u/RickCogley)\
**Post date:** [April 24, 2017, 7:36am UTC](https://discourse.gohugo.io/t/monolingual-site-getting-no-translation-bundle-warnings/6300/3 "2017-04-24T07:36:55Z")

</div>

Thanks @bep. I added the empty `/i18n/en.toml` and restarted hugo server. Now I get only one warning:

```
 WARN 2017/04/24 16:33:56 No translation bundle found for default language "en"

```

I’ll go ahead and add the config when I can, to get used to it because I need to convert a site to use this method once I understand a bit more.

Appreciate the help.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [April 24, 2017, 7:52am UTC](https://discourse.gohugo.io/t/monolingual-site-getting-no-translation-bundle-warnings/6300/4 "2017-04-24T07:52:41Z")

</div>

That is a little bit weird, maybe you can test by putting one dummy translation string in that file:

```auto
[wordCount]
other = "{{ .WordCount }} words"

```

---

<div class="post-metadata">

**Author:** ![RickCogley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rickcogley/32/10269_2.png) [@RickCogley](https://discourse.gohugo.io/u/RickCogley)\
**Post date:** [April 24, 2017, 7:55am UTC](https://discourse.gohugo.io/t/monolingual-site-getting-no-translation-bundle-warnings/6300/5 "2017-04-24T07:55:22Z")

</div>

@bep, yep, that did it. No more warning after adding that.

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [July 30, 2017, 2:14pm UTC](https://discourse.gohugo.io/t/monolingual-site-getting-no-translation-bundle-warnings/6300/6 "2017-07-30T14:14:43Z")

</div>

I get the same warnings when building my monolingual sites (and in the log outputs). Can I configure something to tell Hugo I’m having a single-language website? (I looked at the [configuration variables](https://gohugo.io/getting-started/configuration/) page but couldn’t find any).

Is there another approach to removing those warnings than adding redundant files to my project?

My reasoning for wanting to remove those warning is to keep Hugo running as efficient as possible. If I add additional files to the project just to suppress those warnings, Hugo might still execute all the multi-language features I don’t need.

(My Hugo performance is not bad, but just wanting to have a ‘clean house’ if that makes sense.)

---

<div class="post-metadata">

**Author:** ![coco](https://avatars.discourse-cdn.com/v4/letter/c/8797f3/32.png) [@coco](https://discourse.gohugo.io/u/coco)\
**Post date:** [April 18, 2018, 8:51am UTC](https://discourse.gohugo.io/t/monolingual-site-getting-no-translation-bundle-warnings/6300/7 "2018-04-18T08:51:48Z")

</div>

+1

I am making my first steps with hugo, created a site from scratch and started with a freshly created template. With the first output I received

```
No translation bundle found for default language "en"

```

Obviously I shouldn’t have changed my language in the config.toml of the site. But what if I want to…?  
I changed it back to en-en but still i get the error message.

A solution would be appreciated!

---

<div class="post-metadata">

**Author:** ![RickCogley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rickcogley/32/10269_2.png) [@RickCogley](https://discourse.gohugo.io/u/RickCogley)\
**Post date:** [April 18, 2018, 11:36am UTC](https://discourse.gohugo.io/t/monolingual-site-getting-no-translation-bundle-warnings/6300/8 "2018-04-18T11:36:45Z")

</div>

The solution is still what bep mentioned above, adding a string to `/i18n/en.toml`.

---

<div class="post-metadata">

**Author:** ![omar\_amine](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/omar_amine/32/10697_2.png) [@omar\_amine](https://discourse.gohugo.io/u/omar_amine)\
**Post date:** [February 26, 2020, 7:07am UTC](https://discourse.gohugo.io/t/monolingual-site-getting-no-translation-bundle-warnings/6300/9 "2020-02-26T07:07:28Z")

</div>

@RickCogley how you add the empty `/i18n/en.toml` ??

---

<div class="post-metadata">

**Author:** ![RickCogley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rickcogley/32/10269_2.png) [@RickCogley](https://discourse.gohugo.io/u/RickCogley)\
**Post date:** [February 26, 2020, 7:24am UTC](https://discourse.gohugo.io/t/monolingual-site-getting-no-translation-bundle-warnings/6300/10 "2020-02-26T07:24:01Z")

</div>

Just do what is mentioned above: [Monolingual site getting "no translation bundle" warnings](https://discourse.gohugo.io/t/monolingual-site-getting-no-translation-bundle-warnings/6300/4)

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [February 26, 2020, 8:45pm UTC](https://discourse.gohugo.io/t/monolingual-site-getting-no-translation-bundle-warnings/6300/11 "2020-02-26T20:45:51Z")

</div>


