# Nextcloud 应用 JSON 文件

#### Versionadded
Added in version 5.15.

用在使用 JavaScript 和 HTML 的 Nextcloud 应用中的基于 JSON 的格式。

#### SEE ALSO
* [JSON](https://docs.translatehouse.org/projects/translate-toolkit/en/latest/formats/json.html)
* [JSON 文件](https://docs.weblate.org/zh-cn/latest/formats/json.md)
* [更新目标语言文件](https://docs.weblate.org/zh-cn/latest/devel/integration.md#updating-target-files)
* [自定义 JSON 输出](https://docs.weblate.org/zh-cn/latest/admin/addons.md#addon-weblate-json-customize)
* [清理翻译文件](https://docs.weblate.org/zh-cn/latest/admin/addons.md#addon-weblate-cleanup-generic)

示例文件：

```json
{
    "translations": {
        "Hello, world!\n": "Ahoj světe!\n",
        "Orangutan has %d banana.\n": null,
        "Try Weblate at <https://demo.weblate.org/>!\n": null,
        "Thank you for using Weblate.": null
    }
}
```

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

#### 支持的功能

| 文件扩展名                                                                       | `.json`          |
|-----------------------------------------------------------------------------|------------------|
| Linguality [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#bimono)          | 双语               |
| 支持复数 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#format-plurals)        | `Yes`            |
| 支持描述 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#format-description)    | `No`             |
| 支持解释 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#format-explanation)    | `No`             |
| 支持上下文 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#format-context)       | `No`             |
| 支持位置 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#format-location)       | `No`             |
| 支持标记 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#format-flags)          | `No`             |
| API 标识符                                                                     | `nextcloud-json` |
| 支持只读字符串 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#read-only-strings)  | `No`             |
| 支持删除过时字符串 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#obsolete-strings) | `No`             |
<!-- AUTOGENERATED END: format-features nextcloud-json -->

## Weblate 配置

|             | 典型的 Weblate [部件配置](https://docs.weblate.org/zh-cn/latest/admin/projects.md#component)   |
|-------------|-----------------------------------------------------------------------------|
| 文件掩码        | `langs/*.json`                                                              |
| 单语言译文模版语言文件 | `langs/en.json`                                                             |
| 新语种的翻译模版    | 空                                                                           |
| 文件格式        | Nextcloud JSON 文件                                                           |
