go-i18n JSON

Go i18n JSON format used by go-i18n library

File Extensions .json
API Extension go_i18n
Format Options No
Import Yes
Export Yes
Pluralization supported? Yes
Descriptions/Comments supported? No

Example

[
  {
    "id": "my_height_in_meters",
    "translation": {
      "one": "I am {{.Count}} meter tall.",
      "other": "I am {{.Count}} meters tall."
    }
  },
  {
    "id": "person_greeting",
    "translation": "Hello {{.Person}}"
  }
]

Further Reading

  • go-i18n on GitHub