To Google Translate
Right-click a section of text and click the Translate icon next to it to text translate or listen to it in your language.
Additional files are visible only to premium users
manifest.json
{
"manifest_version": 2,
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"version": "4.2.0",
"author": "Juan Escobar",
"homepage_url": "https://github.com/itsecurityco/to-google-translate",
"default_locale": "en",
"icons": {
"16": "icons/logo-16.png",
"32": "icons/logo-32.png",
"48": "icons/logo-48.png",
"96": "icons/logo-96.png"
},
"options_ui": {
"page": "src/options/options.html"
},
"background": {
"scripts": [
"src/config.js",
"src/background/translate.js"
]
},
"content_scripts": [
{
"matches": [
"http://*/*",
"https://*/*"
],
"js": [
"src/config.js",
"src/content/modal.js",
"src/content/modal_iframe.js",
"src/content/content.js",
"src/l10n.js"
],
"run_at": "document_idle",
"all_frames": false
},
{
"matches": [
"*://translate.google.com/*",
"*://translate.google.cn/*",
"*://translate.googleusercontent.com/*",
"*://translate.googleusercontent.cn/*"
],
"js": [
"src/content/translate_frame.js"
],
"run_at": "document_end",
"all_frames": true
}
],
"commands": {
"translate": {
"suggested_key": {
"default": "Ctrl+Shift+1"
},
"description": "Translate selected text"
},
"tts": {
"suggested_key": {
"default": "Ctrl+Shift+2"
},
"description": "TTS selected text"
},
"translatePage": {
"suggested_key": {
"default": "Ctrl+Shift+3"
},
"description": "Translate page"
}
},
"permissions": [
"http://*/*",
"https://*/*",
"contextMenus",
"storage",
"webRequest",
"webRequestBlocking",
"tabs"
],
"web_accessible_resources": [
"icons/help.png",
"icons/loading.gif",
"supported_languages.json",
"src/content/modal.html",
"src/content/modal.css",
"src/content/modal_iframe.html"
],
"applications": {
"gecko": {
"id": "jid1-93WyvpgvxzGATw@jetpack"
}
}
}