i18next JSON files#

在 4.15.1 版本變更: Support for v4 variant of this format was added.

提示

In case you use plurals, it is recommended to use v4 as that aligned plural handling with CLDR. Older versions have different plural rules for some languages which are not correct.

`i18next <https://www.i18next.com/>`_是編寫的框架和javascript的國際化框架。Webleate支持其本地化文件,其中包含多個功能。

i18ext翻譯是單語,因此建議使用(最常見的)英語字串指定基本文件。

備註

Weblate supports the i18next JSON v3 and v4 variants. Please choose correct file format matching your environment.

The v2 and v1 variants are mostly compatible with v3, with exception of how plurals are handled.

範例檔案:

{
  "hello": "Hello",
  "apple": "I have an apple",
  "apple_plural": "I have {{count}} apples",
  "apple_negative": "I have no apples"
}

Weblate 設定組態#

典型的 Weblate 組件配置

文件掩碼

langs/*.json

單語的基底語言檔

langs/en.json

新翻譯的模板

Empty

檔案格式

i18next JSON file v3