nicksnyder / go-i18n

Translate your Go program into multiple languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Breaks on key description

mateors opened this issue · comments

It breaks when I add the following in my language file

{
...
    "description": "Description"
...
}

Correct, “description” is one of the reserved words that you can’t use as a message id.

Here are all words you can’t use:

case "id":
m.ID = v
case "description":
m.Description = v
case "hash":
m.Hash = v
case "leftdelim":
m.LeftDelim = v
case "rightdelim":
m.RightDelim = v
case "zero":
m.Zero = v
case "one":
m.One = v
case "two":
m.Two = v
case "few":
m.Few = v
case "many":
m.Many = v
case "other":