Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

chrome extension- manifest version 2 _locales issues

Tags:

i'm trying to update my manifest version for my extension but it gave me this problem:

default locale was specified, but _locales subtree is missing.

this is my manifest.json file, can anyone tell me where is the problem and what can i do?

{   "name": "Selected Text",    "version": "0.1",    "manifest_version": 2,   "description": "Selected Text and some changes",    "default_locale":"en",    "browser_action": {      "default_title": "S. Text",      "default_icon": "online.png",     "default_popup": "popup.html"   },   "permissions": [     "tabs",      "chrome://favicon/",      "http://*/*",       "https://*/*"    ],   {      "matches": ["http://*/*"],      "js": ["selection.js"],      "run_at": "document_start",      "all_frames": true   } } 
like image 448
elianore Avatar asked Oct 20 '12 21:10

elianore


People also ask

Is manifest V2 still supported?

Enterprise users now have six additional months to shed their reliance on the deprecated Manifest V2. In September 2021, Google said it would no longer run Manifest V2 extensions starting January 2023.

Is manifest V2 deprecated?

After January 2023, Chrome browser will no longer run Manifest V2 extensions and developers may no longer be able to push updates to existing Manifest V2 extensions. With the use of enterprise policy, the MV2 extensions can function on Chrome deployments till June 2023.

How do I change my manifest version?

To modify the manifest, you must first prepare a text file containing the information you wish to add to the manifest. You then use the Jar tool's m option to add the information in your file to the manifest. Warning: The text file from which you are creating the manifest must end with a new line or carriage return.

What is the Web_accessible_resources section within a manifest file?

With the web_accessible_resources key, you list all the packaged resources that you want to make available to web pages. You specify them as paths relative to the manifest. json file. Note that content scripts don't need to be listed as web accessible resources.


1 Answers

It sounds like you are missing the required _locales directory in your extension root. Since you are specifying a default_locale, you need to provide a _locales directory, inside of which lie your internationalization options. In your case, you would need to at least have a folder titled _locales/en, inside of which you have a messages.json file, inside of which you would set your specific parameters (see here for more information).

like image 168
RocketDonkey Avatar answered Oct 23 '22 05:10

RocketDonkey