JSON-файлы WebExtension¶
Формат файла, используемый при переводе расширений для Mozilla Firefox или Google Chromium.
Примечание
While this format is called JSON, its specification allows including «//»-style comments. Weblate does strip these comments while parsing the files and discards them when saving.
Пример файла:
{
"hello": {
"message": "Ahoj světe!\n",
"description": "Description",
"placeholders": {
"url": {
"content": "$1",
"example": "https://developer.mozilla.org"
}
}
},
"orangutan": {
"message": "Orangutan has $coUnT$ bananas",
"description": "Description",
"placeholders": {
"count": {
"content": "$1",
"example": "5"
}
}
},
"try": {
"message": "",
"description": "Description"
},
"thanks": {
"message": "",
"description": "Description"
}
}
File extensions |
|
|---|---|
Linguality ⓘ |
Одноязычный |
Supports plural ⓘ |
|
Supports descriptions ⓘ |
|
Supports explanation ⓘ |
|
Supports context ⓘ |
|
Supports location ⓘ |
|
Supports flags ⓘ |
|
API identifier |
|
Supports read-only strings ⓘ |
|
Настройка Weblate¶
Typical Weblate Настройки компонента |
|
|---|---|
Маска файла |
|
Одноязычный базовый файл |
|
Шаблон для новых переводов |
Пусто |
Формат файла |
JSON-файл WebExtension |