go-i18n JSON datoteke¶
Added in version 4.1.
Promijenjeno u verziji 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.
Napomena
Weblate supports the go-i18n JSON v1 and v2 variants. Please choose correct file format matching your environment.
Više informacija
Example files¶
Primjer datoteke 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": ""
}
]
Primjer datoteke 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": ""
}
}
Datotečni sufiks |
|
|---|---|
Jezičnost ⓘ |
Jednojezične |
Podržava množinu ⓘ |
|
Podržava opise ⓘ |
|
Podržava objašnjenja ⓘ |
|
Podržava kontekst ⓘ |
|
Podržava mjesto ⓘ |
|
Podržava oznake ⓘ |
|
Identifikator API-ja |
|
Podržava izraze koji su samo-za-čitanje ⓘ |
|
Supports removing obsolete strings ⓘ |
|
Datotečni sufiks |
|
|---|---|
Jezičnost ⓘ |
Jednojezične i dvojezične |
Podržava množinu ⓘ |
|
Podržava opise ⓘ |
|
Podržava objašnjenja ⓘ |
|
Podržava kontekst ⓘ |
|
Podržava mjesto ⓘ |
|
Podržava oznake ⓘ |
|
Identifikator API-ja |
|
Podržava izraze koji su samo-za-čitanje ⓘ |
|
Supports removing obsolete strings ⓘ |
|
Weblate konfiguracija¶
Typical Weblate Konfiguracija komponente for v1 |
|
|---|---|
Maska datoteke |
|
Jednojezična datoteka osnovnog jezika |
|
Predložak za nove prijevode |
Empty |
Format datoteke |
go-i18n v1 JSON file |
Typical Weblate Konfiguracija komponente for v2 |
|
|---|---|
Maska datoteke |
|
Jednojezična datoteka osnovnog jezika |
|
Predložak za nove prijevode |
Empty |
Format datoteke |
go-i18n v2 JSON file |