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 } }
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.
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.
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.
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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With