Lokal Firefox

Examine source code of Lokal

Inspect and view changes in Lokal source codes across current and past versions
Please login to examine the extension's source code.
manifest.json
{
  "manifest_version": 3,
  "name": "Lokal",
  "version": "1.5.0",
  "description": "Fast multilingual dictionary and AI translator with instant search, favorites, and dark mode",
  "permissions": [
    "storage",
    "contextMenus",
    "declarativeNetRequest",
    "activeTab",
    "tabHide"
  ],
  "host_permissions": [
    "https://tureng.com/*",
    "https://dictionary.cambridge.org/*",
    "https://glosbe.com/*",
    "https://*.glosbe.com/*",
    "https://www.etymonline.com/*",
    "https://etymonline.com/*",
    "https://www.merriam-webster.com/*"
  ],
  "declarative_net_request": {
    "rule_resources": [
      {
        "id": "strip_headers",
        "enabled": true,
        "path": "rules.json"
      }
    ]
  },
  "background": {
    "scripts": [
      "background.js"
    ],
    "type": "module"
  },
  "content_scripts": [
    {
      "matches": [
        "<all_urls>"
      ],
      "js": [
        "content.js"
      ],
      "run_at": "document_end",
      "all_frames": true
    }
  ],
  "action": {
    "default_popup": "src/popup/index.html",
    "default_icon": {
      "16": "icons/icon-16.png",
      "48": "icons/icon-48.png",
      "128": "icons/icon-128.png"
    }
  },
  "commands": {
    "_execute_action": {
      "suggested_key": {
        "default": "Alt+Shift+D",
        "mac": "Alt+Shift+D"
      },
      "description": "Activate the extension"
    },
    "translate_selection": {
      "suggested_key": {
        "default": "Alt+Shift+T",
        "mac": "Alt+Shift+T"
      },
      "description": "Translate selected text"
    },
    "ai_translate": {
      "suggested_key": {
        "default": "Alt+Shift+A",
        "mac": "Alt+Shift+A"
      },
      "description": "AI translate selection (or open AI panel)"
    }
  },
  "icons": {
    "16": "icons/icon-16.png",
    "48": "icons/icon-48.png",
    "128": "icons/icon-128.png"
  },
  "browser_specific_settings": {
    "gecko": {
      "id": "modern-tureng@example.com",
      "strict_min_version": "115.0",
      "data_collection_permissions": {
        "required": [
          "none"
        ]
      }
    }
  },
  "sidebar_action": {
    "default_panel": "src/sidebar/index.html",
    "default_title": "Lokal",
    "default_icon": {
      "16": "icons/icon-16.png",
      "48": "icons/icon-48.png",
      "128": "icons/icon-128.png"
    }
  }
}

Best Lokal Alternatives

Here are some Firefox add-ons that are similar to Lokal: