WebExtension JSON¶
在翻譯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"
}
}
Weblate 設定組態¶
典型的 Weblate 組件組態 |
|
---|---|
檔案遮罩 |
|
單語的基底語言檔 |
|
新翻譯的模板 |
空 |
檔案格式 |
WebExtension JSON 檔 |