go-i18n JSON dosyaları

Added in version 4.1.

4.16 sürümünde değişti: Bu biçimin 2. sürümü için destek eklendi.

go-i18n çevirileri tek dillidir. Bu nedenle (en sık kullanılan) İngilizce dizgeleri bulunan bir temel dosya belirtmeniz önerilir.

Not

Weblate, go-i18n JSON 1. ve 2. sürümlerini destekler. Lütfen ortamınıza uyan doğru dosya biçimini seçin.

Örnek dosyalar

v1 örnek dosyası:

[
  {
    "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": ""
  }
]

v2 örnek dosyası:

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

Weblate yapılandırması

v1 için tipik Weblate Bileşen yapılandırması

Dosya maskesi

langs/*.json

Tek dilli temel dil dosyası

langs/en.json

Yeni çeviriler kalıbı

Boş

Dosya biçimi

go-i18n v1 JSON dosyası

V2 için tipik Weblate Bileşen yapılandırması

Dosya maskesi

langs/*.json

Tek dilli temel dil dosyası

langs/en.json

Yeni çeviriler kalıbı

Boş

Dosya biçimi

go-i18n v2 JSON dosyası