go-i18n JSON

Go i18n JSON format used by go-i18n library

File Extensions.json
API Extensiongo_i18n
Format OptionsNo
ImportYes
ExportYes
Pluralization supported?Yes
Descriptions supported?No

Example

[
  {
    "id": "boolean_key",
    "translation": "--- true\n"
  },
  {
    "id": "empty_string_translation",
    "translation": ""
  },
  {
    "id": "key_with_description",
    "translation": "Check it out! This key has a description! (At least in some formats)"
  },
  {
    "id": "key_with_line-break",
    "translation": "This translations contains\na line-break."
  },
  {
    "id": "nested.deeply.key",
    "translation": "Wow, this key is nested even deeper."
  },
  {
    "id": "nested.key",
    "translation": "This key is nested inside a namespace."
  },
  {
    "id": "null_translation",
    "translation": null
  },
  {
    "id": "pluralized_key",
    "translation": {
      "one": "Only one pluralization found.",
      "other": "Wow, you have %s pluralizations!",
      "zero": "You have no pluralization."
    }
  },
  {
    "id": "sample_collection",
    "translation": "---\n- first item\n- second item\n- third item\n"
  },
  {
    "id": "simple_key",
    "translation": "Just a simple key with a simple message."
  },
  {
    "id": "unverified_key",
    "translation": "This translation is not yet verified and waits for it. (In some formats we also export this status)"
  }
]

Further Reading