Format json files

This commit is contained in:
sienori 2020-05-02 01:41:49 +09:00
parent 35fd136c2a
commit 6d9a807d3a
3 changed files with 47 additions and 45 deletions

View file

@ -5,7 +5,6 @@
"extDescription": { "extDescription": {
"message": "Quickly translate selected text on web page. In toolbar popup, you can translate input text." "message": "Quickly translate selected text on web page. In toolbar popup, you can translate input text."
}, },
"donateWithPaypalLabel": { "donateWithPaypalLabel": {
"message": "Donate with PayPal" "message": "Donate with PayPal"
}, },
@ -42,7 +41,6 @@
"langList": { "langList": {
"message": "af:Afrikaans, sq:Albanian, am:Amharic, ar:Arabic, hy:Armenian, az:Azerbaijani, eu:Basque, be:Belarusian, bn:Bengali, bs:Bosnian, bg:Bulgarian, ca:Catalan, ceb:Cebuano, ny:Chewa, zh-CN:Chinese (PRC), zh-TW:Chinese (Taiwan), co:Corsican, hr:Croatian, cs:Czech, da:Danish, nl:Dutch, en:English, eo:Esperanto, et:Estonian, fi:Finnish, fr:French, fy:Frisian, gl:Galician, ka:Georgian, de:German, el:Greek, gu:Gujarati, ht:Haitian, ha:Hausa, haw:Hawaiian, he:Hebrew, hi:Hindi, hu:Hungarian, is:Icelandic, ig:Igbo, id:Indonesian, ga:Irish, it:Italian, ja:Japanese, jv:Javanese, kn:Kannada, kk:Kazakh, km:Khmer, ky:Kirghiz, ko:Korean, ku:Kurdish, lo:Laotian, la:Latin, lv:Latvian, lt:Lithuanian, lb:Luxembourgish, mk:Macedonian, mg:Malagasy, ms:Malay, ml:Malayalam, mt:Maltese, mi:Maori, mr:Marathi, mn:Mongolian, hmn:Monk, my:Myanmar, ne:Nepali, no:Norwegian, fa:Persian, pl:Polish, pt:Portuguese, pa:Punjabi, ps:Pushto, ro:Romanian, ru:Russian, sm:Samoan, gd:Scottish Gaelic, sr:Serbian, sn:Shona, sd:Sindhi, si:Sinhala, sk:Slovak, sl:Slovenian, so:Somali, sx:Sotho, es:Spanish, su:Sundanese, sw:Swahili, sv:Swedish, tl:Tagalog, tg:Tajiki, ta:Tamil, te:Telugu, th:Thai, tr:Turkish, uk:Ukrainian, ur:Urdu, uz:Uzbek, vi:Vietnamese, cy:Welsh, xh:Xosa, yi:Yiddish, yo:Yoruba, zu:Zulu" "message": "af:Afrikaans, sq:Albanian, am:Amharic, ar:Arabic, hy:Armenian, az:Azerbaijani, eu:Basque, be:Belarusian, bn:Bengali, bs:Bosnian, bg:Bulgarian, ca:Catalan, ceb:Cebuano, ny:Chewa, zh-CN:Chinese (PRC), zh-TW:Chinese (Taiwan), co:Corsican, hr:Croatian, cs:Czech, da:Danish, nl:Dutch, en:English, eo:Esperanto, et:Estonian, fi:Finnish, fr:French, fy:Frisian, gl:Galician, ka:Georgian, de:German, el:Greek, gu:Gujarati, ht:Haitian, ha:Hausa, haw:Hawaiian, he:Hebrew, hi:Hindi, hu:Hungarian, is:Icelandic, ig:Igbo, id:Indonesian, ga:Irish, it:Italian, ja:Japanese, jv:Javanese, kn:Kannada, kk:Kazakh, km:Khmer, ky:Kirghiz, ko:Korean, ku:Kurdish, lo:Laotian, la:Latin, lv:Latvian, lt:Lithuanian, lb:Luxembourgish, mk:Macedonian, mg:Malagasy, ms:Malay, ml:Malayalam, mt:Maltese, mi:Maori, mr:Marathi, mn:Mongolian, hmn:Monk, my:Myanmar, ne:Nepali, no:Norwegian, fa:Persian, pl:Polish, pt:Portuguese, pa:Punjabi, ps:Pushto, ro:Romanian, ru:Russian, sm:Samoan, gd:Scottish Gaelic, sr:Serbian, sn:Shona, sd:Sindhi, si:Sinhala, sk:Slovak, sl:Slovenian, so:Somali, sx:Sotho, es:Spanish, su:Sundanese, sw:Swahili, sv:Swedish, tl:Tagalog, tg:Tajiki, ta:Tamil, te:Telugu, th:Thai, tr:Turkish, uk:Ukrainian, ur:Urdu, uz:Uzbek, vi:Vietnamese, cy:Welsh, xh:Xosa, yi:Yiddish, yo:Yoruba, zu:Zulu"
}, },
"settingsLabel": { "settingsLabel": {
"message": "Settings" "message": "Settings"
}, },
@ -103,7 +101,6 @@
"disableUrlListCaptionLabel": { "disableUrlListCaptionLabel": {
"message": "If the page URL matches the list, translation on the web page is disabled. The list allows \"*\" wildcards." "message": "If the page URL matches the list, translation on the web page is disabled. The list allows \"*\" wildcards."
}, },
"toolbarLabel": { "toolbarLabel": {
"message": "Toolbar popup" "message": "Toolbar popup"
}, },
@ -128,7 +125,6 @@
"waitTime2CaptionLabel": { "waitTime2CaptionLabel": {
"message": "If you translate it many times in a short time, it may become unusable for a while." "message": "If you translate it many times in a short time, it may become unusable for a while."
}, },
"menuLabel": { "menuLabel": {
"message": "Context menu" "message": "Context menu"
}, },
@ -138,7 +134,6 @@
"ifShowMenuCaptionLabel": { "ifShowMenuCaptionLabel": {
"message": "Add items to the context menu displayed when right clicking on the web page or the tab." "message": "Add items to the context menu displayed when right clicking on the web page or the tab."
}, },
"styleLabel": { "styleLabel": {
"message": "Style" "message": "Style"
}, },
@ -220,7 +215,6 @@
"bgColorLabel": { "bgColorLabel": {
"message": "Background color" "message": "Background color"
}, },
"otherLabel": { "otherLabel": {
"message": "Other" "message": "Other"
}, },
@ -245,7 +239,6 @@
"resetSettingsButtonLabel": { "resetSettingsButtonLabel": {
"message": "Reset" "message": "Reset"
}, },
"shortcutsLabel": { "shortcutsLabel": {
"message": "Shortcuts" "message": "Shortcuts"
}, },
@ -279,7 +272,6 @@
"reset": { "reset": {
"message": "Reset" "message": "Reset"
}, },
"informationLabel": { "informationLabel": {
"message": "Information" "message": "Information"
}, },
@ -310,7 +302,6 @@
"addonUrl": { "addonUrl": {
"message": "https://addons.mozilla.org/en-US/firefox/addon/simple-translate/?src=optionpage" "message": "https://addons.mozilla.org/en-US/firefox/addon/simple-translate/?src=optionpage"
}, },
"networkError": { "networkError": {
"message": "Error: Check network connection status." "message": "Error: Check network connection status."
}, },
@ -320,7 +311,6 @@
"unknownError": { "unknownError": {
"message": "Error: Unknown error" "message": "Error: Unknown error"
}, },
"translatePageMenu": { "translatePageMenu": {
"message": "Translate this page" "message": "Translate this page"
}, },
@ -330,8 +320,7 @@
"translateLinkMenu": { "translateLinkMenu": {
"message": "Translate selected link" "message": "Translate selected link"
}, },
"openPopupDescription": { "openPopupDescription": {
"message": "Open toolbar popup" "message": "Open toolbar popup"
} }
} }

View file

@ -1,18 +1,18 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"version": "2.2.0", "version": "2.2.0",
"name": "__MSG_extName__", "name": "__MSG_extName__",
"description": "__MSG_extDescription__", "description": "__MSG_extDescription__",
"default_locale": "en", "default_locale": "en",
"permissions": [
"permissions": ["<all_urls>", "storage", "contextMenus"], "<all_urls>",
"storage",
"contextMenus"
],
"options_ui": { "options_ui": {
"page": "options/index.html", "page": "options/index.html",
"open_in_tab": true "open_in_tab": true
}, },
"icons": { "icons": {
"512": "icons/512.png", "512": "icons/512.png",
"128": "icons/128.png", "128": "icons/128.png",
@ -20,11 +20,11 @@
"48": "icons/48.png", "48": "icons/48.png",
"32": "icons/32.png" "32": "icons/32.png"
}, },
"background": { "background": {
"scripts": ["background/background.js"] "scripts": [
"background/background.js"
]
}, },
"browser_action": { "browser_action": {
"default_icon": { "default_icon": {
"512": "icons/512.png", "512": "icons/512.png",
@ -38,18 +38,25 @@
}, },
"default_popup": "popup/index.html" "default_popup": "popup/index.html"
}, },
"content_scripts": [ "content_scripts": [
{ {
"all_frames": true, "all_frames": true,
"matches": ["http://*/*", "https://*/*", "<all_urls>"], "matches": [
"js": ["content/content.js"], "http://*/*",
"css": ["content/content.css"] "https://*/*",
"<all_urls>"
],
"js": [
"content/content.js"
],
"css": [
"content/content.css"
]
} }
], ],
"web_accessible_resources": [
"web_accessible_resources": ["icons/512.png"], "icons/512.png"
],
"commands": { "commands": {
"_execute_browser_action": { "_execute_browser_action": {
"description": "__MSG_openPopupDescription__", "description": "__MSG_openPopupDescription__",
@ -67,4 +74,4 @@
"description": "__MSG_translatePageMenu__" "description": "__MSG_translatePageMenu__"
} }
} }
} }

View file

@ -1,24 +1,23 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"version": "2.2.0", "version": "2.2.0",
"name": "__MSG_extName__", "name": "__MSG_extName__",
"description": "__MSG_extDescription__", "description": "__MSG_extDescription__",
"default_locale": "en", "default_locale": "en",
"applications": { "applications": {
"gecko": { "gecko": {
"id": "simple-translate@sienori" "id": "simple-translate@sienori"
} }
}, },
"permissions": [
"permissions": ["<all_urls>", "storage", "contextMenus"], "<all_urls>",
"storage",
"contextMenus"
],
"options_ui": { "options_ui": {
"page": "options/index.html", "page": "options/index.html",
"open_in_tab": true "open_in_tab": true
}, },
"icons": { "icons": {
"512": "icons/512.png", "512": "icons/512.png",
"128": "icons/128.png", "128": "icons/128.png",
@ -26,11 +25,11 @@
"48": "icons/48.png", "48": "icons/48.png",
"32": "icons/32.png" "32": "icons/32.png"
}, },
"background": { "background": {
"scripts": ["background/background.js"] "scripts": [
"background/background.js"
]
}, },
"browser_action": { "browser_action": {
"default_icon": { "default_icon": {
"512": "icons/512.png", "512": "icons/512.png",
@ -44,18 +43,25 @@
}, },
"default_popup": "popup/index.html" "default_popup": "popup/index.html"
}, },
"content_scripts": [ "content_scripts": [
{ {
"all_frames": true, "all_frames": true,
"matches": ["http://*/*", "https://*/*", "<all_urls>"], "matches": [
"js": ["content/content.js"], "http://*/*",
"css": ["content/content.css"] "https://*/*",
"<all_urls>"
],
"js": [
"content/content.js"
],
"css": [
"content/content.css"
]
} }
], ],
"web_accessible_resources": [
"web_accessible_resources": ["icons/512.png"], "icons/512.png"
],
"commands": { "commands": {
"_execute_browser_action": { "_execute_browser_action": {
"description": "__MSG_openPopupDescription__" "description": "__MSG_openPopupDescription__"
@ -67,4 +73,4 @@
"description": "__MSG_translatePageMenu__" "description": "__MSG_translatePageMenu__"
} }
} }
} }