Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks on key description #302

Closed
mateors opened this issue Sep 2, 2023 · 1 comment
Closed

Breaks on key description #302

mateors opened this issue Sep 2, 2023 · 1 comment

Comments

@mateors
Copy link

mateors commented Sep 2, 2023

It breaks when I add the following in my language file

{
...
    "description": "Description"
...
}
@nicksnyder
Copy link
Owner

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":

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants