JSON-Datei WebExtension¶
Dateiformat, das beim Übersetzen von Erweiterungen für Mozilla Firefox oder Google Chromium verwendet wird.
Bemerkung
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.
Beispieldatei:
{
"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-Konfiguration¶
Typische Weblate-Komponentenkonfiguration |
|
---|---|
Dateimaske |
|
Einsprachige Basissprachdatei |
|
Vorlage für neue Übersetzungen |
Leer |
Dateiformat |
JSON-Datei WebExtension |