JSON para WebExtension#
File format used when translating extensions for Mozilla Firefox or Google Chromium.
Nota
While this format is called JSON, its specification allows to include comments, which are not part of JSON specification. Weblate currently does not support file with comments.
Ver también
JSON, Google chrome.i18n, Mozilla Extensions Internationalization
Archivo de ejemplo:
{
"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"
}
}
Configuración de Weblate#
Typical Weblate Configuración de componentes |
|
---|---|
Máscara de archivos |
|
Archivo de base monolingüe |
|
Plantilla para traducciones nuevas |
Empty |
Formato de archivo |
Archivo JSON para WebExtension |