Chrome扩展程序上传错误-缺少default_locale [英] Chrome Extension upload error - default_locale missing
问题描述
每当我尝试将更新的扩展程序上载到Chrome网上应用店时,都会收到清单中缺少default_locale字段".错误,但它显然位于我的清单中(粘贴在下面).
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"
]
}
]
}
推荐答案
似乎Web商店希望将_locales目录添加到带有子文件夹(在我的情况下为"en_US")的根目录中,并附带正确设置的messages.json文件.遵循对应用进行本地化指南中的信息,即可解决此问题.
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.
希望Google可以将其错误消息更改为找不到_locales目录",而不是我们当前收到的清单错误.
Hoping Google can change their error message be something like "_locales directory not found" rather than the manifest error we currently receive.
这篇关于Chrome扩展程序上传错误-缺少default_locale的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!