The problem of localizing the Chrome extension when adding it - says that I did not set the standard locale, although I did

Error message : "Package is not valid. Details:" Localization is used, but default_locale was not specified in the manifest. "

Problem: I created my own extension and set the default locale, but chrome will not allow me to add it to the extension panel and it displays the above message. I also have the _locales folder in my directory as needed. Could this have anything to do with this folder or its location?

manifest:

{
    "name": "NAMENAMENAMENAME",
    "short_name": "xxx",
    "version": "0.0.3",
    "manifest_version": 2,
    "description": "This does something or other.",
        "browser_action": {
            "default_icon": {
            "16": "icons/yokel16.jpg",
            "48": "icons/yokel48.jpg",
            "default_title": "CCJ",
            "default_popup": "popup.html"
            }
        },
   "icons": {
       "16": "icons/yokel16.jpg",
       "19": "icons/yokel19.jpg",
       "48": "icons/yokel48.jpg",
       "128": "icons/yokel128.jpg"
       },
   "default_locale": "en",
       "background": {
           "page": "popup.js",
           "persistent": false
        },
  "permissions": [
     "cookies",
     "history",
     "tabs",
     "{{some URL}}"
     ]
}
+4
source share
1

, , : "browser_action", "default_icon".

, Chrome, ( default_locale, ).

:

    "browser_action": {
        "default_icon": {
        "16": "icons/yokel16.jpg",
        "48": "icons/yokel48.jpg",
        "default_title": "CCJ",
        "default_popup": "popup.html"
        }
    },

( , 16 48 - , Chrome):

    "browser_action": {
        "default_icon": {
            "19": "icons/yokel48.jpg",
            "38": "icons/yokel48.jpg"
        },
        "default_title": "CCJ",
        "default_popup": "popup.html"
    },
+1

Source: https://habr.com/ru/post/1619957/


All Articles