<a id="go-i18n-json"></a>

# go-i18n JSON-fájlok

<a id="index-0"></a>

#### Versionadded
Added in version 4.1.

#### Versionchanged
A 4.16 verzióban változott: A formátum v2-es változatának támogatása hozzáadásra került.

A go-i18n fordítások egynyelvűek, ezért ajánlott megadni egy alapfájlt (jellemzően angol nyelvű szövegekkel).

#### NOTE
A Weblate támogatja a go-i18n JSON v1 és v2 változatait. Kérjük, válassza ki a környezetének megfelelő fájlformátumot.

#### SEE ALSO
* [JSON](https://docs.translatehouse.org/projects/translate-toolkit/en/latest/formats/json.html)
* [go-i18n](https://github.com/nicksnyder/go-i18n)
* [Célnyelvi fájlok frissítése](https://docs.weblate.org/hu/latest/devel/integration.md#updating-target-files)
* [JSON-kimenet testreszabása](https://docs.weblate.org/hu/latest/admin/addons.md#addon-weblate-json-customize)
* [Fordítási fájlok tisztítása](https://docs.weblate.org/hu/latest/admin/addons.md#addon-weblate-cleanup-generic)

## Példafájlok

Példafájl v1:

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

Példafájl v2:

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

<!-- AUTOGENERATED START: format-features go-i18n-toml -->
<!-- This section is automatically generated by `./manage.py list_format_features`. Do not edit manually. -->

#### Támogatott funkciók

| File extensions                                                                                      | `.toml`        |
|------------------------------------------------------------------------------------------------------|----------------|
| Linguality [ⓘ](https://docs.weblate.org/hu/latest/formats.md#bimono)                                   | Monolingual    |
| Supports plural [ⓘ](https://docs.weblate.org/hu/latest/formats.md#format-plurals)                      | `Yes`          |
| Supports descriptions [ⓘ](https://docs.weblate.org/hu/latest/formats.md#format-description)            | `No`           |
| Supports explanation [ⓘ](https://docs.weblate.org/hu/latest/formats.md#format-explanation)             | `No`           |
| Supports context [ⓘ](https://docs.weblate.org/hu/latest/formats.md#format-context)                     | `No`           |
| Supports location [ⓘ](https://docs.weblate.org/hu/latest/formats.md#format-location)                   | `No`           |
| Supports flags [ⓘ](https://docs.weblate.org/hu/latest/formats.md#format-flags)                         | `No`           |
| API identifier                                                                                       | `go-i18n-toml` |
| Supports read-only strings [ⓘ](https://docs.weblate.org/hu/latest/formats.md#read-only-strings)        | `No`           |
| Supports removing obsolete strings [ⓘ](https://docs.weblate.org/hu/latest/formats.md#obsolete-strings) | `No`           |
<!-- AUTOGENERATED END: format-features go-i18n-toml -->
<!-- AUTOGENERATED START: format-features go-i18n-json -->
<!-- This section is automatically generated by `./manage.py list_format_features`. Do not edit manually. -->

#### Támogatott funkciók

| File extensions                                                                                      | `.json`                           |
|------------------------------------------------------------------------------------------------------|-----------------------------------|
| Linguality [ⓘ](https://docs.weblate.org/hu/latest/formats.md#bimono)                                   | Both monolingual and bilingual    |
| Supports plural [ⓘ](https://docs.weblate.org/hu/latest/formats.md#format-plurals)                      | `Yes`                             |
| Supports descriptions [ⓘ](https://docs.weblate.org/hu/latest/formats.md#format-description)            | `Yes`                             |
| Supports explanation [ⓘ](https://docs.weblate.org/hu/latest/formats.md#format-explanation)             | `No`                              |
| Supports context [ⓘ](https://docs.weblate.org/hu/latest/formats.md#format-context)                     | `No`                              |
| Supports location [ⓘ](https://docs.weblate.org/hu/latest/formats.md#format-location)                   | `No`                              |
| Supports flags [ⓘ](https://docs.weblate.org/hu/latest/formats.md#format-flags)                         | `No`                              |
| API identifier                                                                                       | `go-i18n-json`, `go-i18n-json-v2` |
| Supports read-only strings [ⓘ](https://docs.weblate.org/hu/latest/formats.md#read-only-strings)        | `No`                              |
| Supports removing obsolete strings [ⓘ](https://docs.weblate.org/hu/latest/formats.md#obsolete-strings) | `No`                              |
<!-- AUTOGENERATED END: format-features go-i18n-json -->

## Weblate beállítás

|                            | Tipikus Weblate [Összetevőkonfiguráció](https://docs.weblate.org/hu/latest/admin/projects.md#component) v1 esetén   |
|----------------------------|------------------------------------------------------------------------------------------------------------|
| Fájlmaszk                  | `langs/*.json`                                                                                             |
| Egynyelvű alap nyelvi fájl | `langs/en.json`                                                                                            |
| Sablon az új fordításokhoz | Üres                                                                                                       |
| Fájlformátum               | go-i18n v1 JSON-fájl                                                                                       |

|                            | Tipikus Weblate [Összetevőkonfiguráció](https://docs.weblate.org/hu/latest/admin/projects.md#component) v2 esetén   |
|----------------------------|------------------------------------------------------------------------------------------------------------|
| Fájlmaszk                  | `langs/*.json`                                                                                             |
| Egynyelvű alap nyelvi fájl | `langs/en.json`                                                                                            |
| Sablon az új fordításokhoz | Üres                                                                                                       |
| Fájlformátum               | go-i18n v2 JSON-fájl                                                                                       |
