Chrome Extension upload error - default_locale missing

[亡魂溺海] 提交于 2020-04-13 04:29:28

问题


Whenever I try to upload my updated extension to the Chrome Web Store I get a "default_locale field is missing in manifest." error, yet it is clearly located in my manifest (pasted below).

Any pointers for how I can resolve this?

{
  "manifest_version": 2,
  "name": "####",
  "version": "1.1.0",
  "default_locale": "en-US",
  "description": "####",
  "icons": {
    "16": "icons/icon16.png",
    "48": "icons/icon48.png",
    "64": "icons/icon64.png",
    "128": "icons/icon128.png"
  },
  "homepage_url": "http://####.com",
  "permissions": [
    "https://*.####.com/*",
    "https://####.com/*"
  ],
  "content_scripts": [
    {
      "matches": [
        "https://*.####.com/*",          
        "https://####.com/*"
      ],
      "css": [
        "src/####/####.css"
      ]
    }
  ]
}

回答1:


It seems the Web Store wanted a _locales directory added to the root with subfolders ("en_US" for my case) and accompanied by properly setup messages.json files. Following the information from the Localizing your app guide resolved the issue.

Hoping Google can change their error message be something like "_locales directory not found" rather than the manifest error we currently receive.



来源:https://stackoverflow.com/questions/42942845/chrome-extension-upload-error-default-locale-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!