From 6d9a807d3aa54ea8036c12d9a09ef08b305e1c1c Mon Sep 17 00:00:00 2001 From: sienori Date: Sat, 2 May 2020 01:41:49 +0900 Subject: [PATCH] Format json files --- src/_locales/en/messages.json | 13 +----------- src/manifest-chrome.json | 39 ++++++++++++++++++++-------------- src/manifest-firefox.json | 40 ++++++++++++++++++++--------------- 3 files changed, 47 insertions(+), 45 deletions(-) diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index f8e2ecd..32109b2 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -5,7 +5,6 @@ "extDescription": { "message": "Quickly translate selected text on web page. In toolbar popup, you can translate input text." }, - "donateWithPaypalLabel": { "message": "Donate with PayPal" }, @@ -42,7 +41,6 @@ "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" }, - "settingsLabel": { "message": "Settings" }, @@ -103,7 +101,6 @@ "disableUrlListCaptionLabel": { "message": "If the page URL matches the list, translation on the web page is disabled. The list allows \"*\" wildcards." }, - "toolbarLabel": { "message": "Toolbar popup" }, @@ -128,7 +125,6 @@ "waitTime2CaptionLabel": { "message": "If you translate it many times in a short time, it may become unusable for a while." }, - "menuLabel": { "message": "Context menu" }, @@ -138,7 +134,6 @@ "ifShowMenuCaptionLabel": { "message": "Add items to the context menu displayed when right clicking on the web page or the tab." }, - "styleLabel": { "message": "Style" }, @@ -220,7 +215,6 @@ "bgColorLabel": { "message": "Background color" }, - "otherLabel": { "message": "Other" }, @@ -245,7 +239,6 @@ "resetSettingsButtonLabel": { "message": "Reset" }, - "shortcutsLabel": { "message": "Shortcuts" }, @@ -279,7 +272,6 @@ "reset": { "message": "Reset" }, - "informationLabel": { "message": "Information" }, @@ -310,7 +302,6 @@ "addonUrl": { "message": "https://addons.mozilla.org/en-US/firefox/addon/simple-translate/?src=optionpage" }, - "networkError": { "message": "Error: Check network connection status." }, @@ -320,7 +311,6 @@ "unknownError": { "message": "Error: Unknown error" }, - "translatePageMenu": { "message": "Translate this page" }, @@ -330,8 +320,7 @@ "translateLinkMenu": { "message": "Translate selected link" }, - "openPopupDescription": { "message": "Open toolbar popup" } -} +} \ No newline at end of file diff --git a/src/manifest-chrome.json b/src/manifest-chrome.json index 7abacd7..12029fb 100644 --- a/src/manifest-chrome.json +++ b/src/manifest-chrome.json @@ -1,18 +1,18 @@ { "manifest_version": 2, - "version": "2.2.0", "name": "__MSG_extName__", "description": "__MSG_extDescription__", "default_locale": "en", - - "permissions": ["", "storage", "contextMenus"], - + "permissions": [ + "", + "storage", + "contextMenus" + ], "options_ui": { "page": "options/index.html", "open_in_tab": true }, - "icons": { "512": "icons/512.png", "128": "icons/128.png", @@ -20,11 +20,11 @@ "48": "icons/48.png", "32": "icons/32.png" }, - "background": { - "scripts": ["background/background.js"] + "scripts": [ + "background/background.js" + ] }, - "browser_action": { "default_icon": { "512": "icons/512.png", @@ -38,18 +38,25 @@ }, "default_popup": "popup/index.html" }, - "content_scripts": [ { "all_frames": true, - "matches": ["http://*/*", "https://*/*", ""], - "js": ["content/content.js"], - "css": ["content/content.css"] + "matches": [ + "http://*/*", + "https://*/*", + "" + ], + "js": [ + "content/content.js" + ], + "css": [ + "content/content.css" + ] } ], - - "web_accessible_resources": ["icons/512.png"], - + "web_accessible_resources": [ + "icons/512.png" + ], "commands": { "_execute_browser_action": { "description": "__MSG_openPopupDescription__", @@ -67,4 +74,4 @@ "description": "__MSG_translatePageMenu__" } } -} +} \ No newline at end of file diff --git a/src/manifest-firefox.json b/src/manifest-firefox.json index d582933..a4829d4 100644 --- a/src/manifest-firefox.json +++ b/src/manifest-firefox.json @@ -1,24 +1,23 @@ { "manifest_version": 2, - "version": "2.2.0", "name": "__MSG_extName__", "description": "__MSG_extDescription__", "default_locale": "en", - "applications": { "gecko": { "id": "simple-translate@sienori" } }, - - "permissions": ["", "storage", "contextMenus"], - + "permissions": [ + "", + "storage", + "contextMenus" + ], "options_ui": { "page": "options/index.html", "open_in_tab": true }, - "icons": { "512": "icons/512.png", "128": "icons/128.png", @@ -26,11 +25,11 @@ "48": "icons/48.png", "32": "icons/32.png" }, - "background": { - "scripts": ["background/background.js"] + "scripts": [ + "background/background.js" + ] }, - "browser_action": { "default_icon": { "512": "icons/512.png", @@ -44,18 +43,25 @@ }, "default_popup": "popup/index.html" }, - "content_scripts": [ { "all_frames": true, - "matches": ["http://*/*", "https://*/*", ""], - "js": ["content/content.js"], - "css": ["content/content.css"] + "matches": [ + "http://*/*", + "https://*/*", + "" + ], + "js": [ + "content/content.js" + ], + "css": [ + "content/content.css" + ] } ], - - "web_accessible_resources": ["icons/512.png"], - + "web_accessible_resources": [ + "icons/512.png" + ], "commands": { "_execute_browser_action": { "description": "__MSG_openPopupDescription__" @@ -67,4 +73,4 @@ "description": "__MSG_translatePageMenu__" } } -} +} \ No newline at end of file