# \[SOLVED\] Error: cannot unmarshal !str \`en-us.yaml\` into \[\]map\[string\]interface {}

**URL:** <https://discourse.gohugo.io/t/solved-error-cannot-unmarshal-str-en-us-yaml-into-map-string-interface/4789>\
**Category:** support\
**Created:** [December 11, 2016, 7:24pm UTC](https://discourse.gohugo.io/t/solved-error-cannot-unmarshal-str-en-us-yaml-into-map-string-interface/4789 "2016-12-11T19:24:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![viktorshutov](https://avatars.discourse-cdn.com/v4/letter/v/6bbea6/32.png) [@viktorshutov](https://discourse.gohugo.io/u/viktorshutov)\
**Post date:** [December 11, 2016, 7:24pm UTC](https://discourse.gohugo.io/t/solved-error-cannot-unmarshal-str-en-us-yaml-into-map-string-interface/4789/1 "2016-12-11T19:24:06Z")

</div>

hello everyone!  
i’m new to hugo but very excited!  
And my excitement just got massive test. i just got an error:  
C:\Hugo\Sites\[bibl.bi](http://bibl.bi)\>hugo -v server  
INFO: 2016/12/11 22:02:38 hugo.go:405: Using config file: C:\Hugo\Sites\[bibl.bi](http://bibl.bi)\config.toml  
INFO: 2016/12/11 22:02:38 hugo.go:517: using a UnionFS for static directory comprised of:  
INFO: 2016/12/11 22:02:38 hugo.go:518: Base: C:\Hugo\Sites\[bibl.bi](http://bibl.bi)\themes\hugo-tranquilpeak-theme\static  
INFO: 2016/12/11 22:02:38 hugo.go:519: Overlay: C:\Hugo\Sites\[bibl.bi](http://bibl.bi)\static  
INFO: 2016/12/11 22:02:38 hugo.go:551: syncing static files to C:\Hugo\Sites\[bibl.bi](http://bibl.bi)  
Started building sites …  
Error: Error building site: yaml: unmarshal errors:  
line 1: cannot unmarshal !!str `en-us.yaml` into []map[string]interface {}  
I’m using Windows 8.1, official git client from [git-scm.com](http://git-scm.com), theme git’ed, everything is just like manuals direct.  
i suppose it’s line break type issue, and i tried different options in git with no luck.  
May some kind person point me a way, please?

---

<div class="post-metadata">

**Author:** ![moorereason](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/moorereason/32/592_2.png) [@moorereason](https://discourse.gohugo.io/u/moorereason)\
**Post date:** [December 11, 2016, 11:27pm UTC](https://discourse.gohugo.io/t/solved-error-cannot-unmarshal-str-en-us-yaml-into-map-string-interface/4789/2 "2016-12-11T23:27:42Z")

</div>

We’re going to need to see the contents of `en-us.yaml`. If can cut it down the smallest size possible that still triggers the error, that would help.

---

<div class="post-metadata">

**Author:** ![Mikhail](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/mikhail/32/1138_2.png) [@Mikhail](https://discourse.gohugo.io/u/Mikhail)\
**Post date:** [December 13, 2016, 6:53am UTC](https://discourse.gohugo.io/t/solved-error-cannot-unmarshal-str-en-us-yaml-into-map-string-interface/4789/3 "2016-12-13T06:53:09Z")

</div>

Strange that you both appear toml and yaml. It is more logical to choose one format and use it in all the configuration files.

---

<div class="post-metadata">

**Author:** ![moorereason](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/moorereason/32/592_2.png) [@moorereason](https://discourse.gohugo.io/u/moorereason)\
**Post date:** [December 13, 2016, 12:54pm UTC](https://discourse.gohugo.io/t/solved-error-cannot-unmarshal-str-en-us-yaml-into-map-string-interface/4789/4 "2016-12-13T12:54:27Z")

</div>

I believe go-i18n requires YAML input files.

---

<div class="post-metadata">

**Author:** ![viktorshutov](https://avatars.discourse-cdn.com/v4/letter/v/6bbea6/32.png) [@viktorshutov](https://discourse.gohugo.io/u/viktorshutov)\
**Post date:** [December 15, 2016, 6:41am UTC](https://discourse.gohugo.io/t/solved-error-cannot-unmarshal-str-en-us-yaml-into-map-string-interface/4789/5 "2016-12-15T06:41:19Z")

</div>

Thanks for you answers!

I worked in debian and everything worked just like in manuals - hugo is very promising for me.  
Now i get back in Windows and started to bagtracking it all.  
The theme i get troubles in is Tranquilpeak. Awesome theme. It supports i18n and first i use its examplesite with config.toml and make changes in config.toml:

```auto
baseurl = "kilmezlib.ru"
languageCode = "ru"
defaultContentLanguage = "ru"

```

And i get:

```auto
Error: Error building site: yaml: unmarshal errors:
  line 1: cannot unmarshal !!str `en-us.yaml` into []map[string]interface {}

```

When i remove `\themes\hugo-tranquilpeak-theme\i18n\en.yaml` completely, i get two screens of errors, but hugo starts and site works. That’s why i believe than reason of initial error message was in content of en.yaml:

```auto
en-us.yaml

```

and that’s all. It’s not a YAML, actually. And hugo can’t unmarshal it. If i copy content en-us.yaml in en.yaml - hugo starts (with a lot of errors, actually, but for now i believe they are theme-related)

Again, everyone - **THANK YOU!**  
i think we should call the topic resolved

---

<div class="post-metadata">

**Author:** ![viktorshutov](https://avatars.discourse-cdn.com/v4/letter/v/6bbea6/32.png) [@viktorshutov](https://discourse.gohugo.io/u/viktorshutov)\
**Post date:** [December 15, 2016, 6:49am UTC](https://discourse.gohugo.io/t/solved-error-cannot-unmarshal-str-en-us-yaml-into-map-string-interface/4789/6 "2016-12-15T06:49:09Z")

</div>

/me whispers: but i worked like breeze in debian… why?..

---

<div class="post-metadata">

**Author:** ![moorereason](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/moorereason/32/592_2.png) [@moorereason](https://discourse.gohugo.io/u/moorereason)\
**Post date:** [December 15, 2016, 3:30pm UTC](https://discourse.gohugo.io/t/solved-error-cannot-unmarshal-str-en-us-yaml-into-map-string-interface/4789/7 "2016-12-15T15:30:56Z")

</div>

`en.yaml` looks like it’s a symlink to `en-us.yaml`, which could be causing an issue in Windows.

---

<div class="post-metadata">

**Author:** ![viktorshutov](https://avatars.discourse-cdn.com/v4/letter/v/6bbea6/32.png) [@viktorshutov](https://discourse.gohugo.io/u/viktorshutov)\
**Post date:** [December 16, 2016, 3:02am UTC](https://discourse.gohugo.io/t/solved-error-cannot-unmarshal-str-en-us-yaml-into-map-string-interface/4789/8 "2016-12-16T03:02:25Z")

</div>

absolutely right:

 ![](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/b/b598d486ee0e78e98f4ada49a295eee77235d7d2.png)
