Kartela JSON go-i18n

Shtuar në versionin 4.1.

Ndryshuar në versionin 4.16: Support for v2 variant of this format was added.

go-i18n translations are monolingual, so it is recommended to specify a base file with (what is most often the) English strings.

Shënim

Weblate supports the go-i18n JSON v1 and v2 variants. Please choose correct file format matching your environment.

Kartela shembull

Example file v1:

[
  {
    "id": "hello",
    "description": "Description",
    "translation": "Ahoj světe!\n"
  },
  {
    "id": "orangutan",
    "description": "Description",
    "translation": {
      "one": "Orangutan has {{.Count}} banana.\n",
      "other": "Orangutan has {{.Count}} bananas.\n"
    }
  },
  {
    "id": "try",
    "description": "Description",
    "translation": ""
  },
  {
    "id": "thanks",
    "description": "Description",
    "translation": ""
  }
]

Example file v2:

{
  "hello": "Ahoj světe!\n",
  "orangutan": {
    "description": "Description",
    "one": "Orangutan has {{.Count}} banana.\n",
    "other": "Orangutan has {{.Count}} bananas.\n"
  },
  "try": {
    "description": "Description",
    "other": ""
  },
  "thanks": {
    "description": "Description",
    "other": ""
  }
}

Formësim Weblate-i

Typical Weblate Component configuration for v1

Maskë kartele

langs/*.json

Kartelë njëgjuhëshe gjuhe bazë

langs/en.json

Gjedhe për përkthime të reja

Empty

Format kartelash

go-i18n v1 JSON file

Typical Weblate Component configuration for v2

Maskë kartele

langs/*.json

Kartelë njëgjuhëshe gjuhe bazë

langs/en.json

Gjedhe për përkthime të reja

Empty

Format kartelash

go-i18n v2 JSON file