Encountering a problem with Chrome Extension localization upon installation - receiving an error message claiming default locale was not specified, despite having

Error Message: "The package has been deemed invalid due to the following reason: 'Localization was utilized, however default_locale was not specified in the manifest.'

Issue: I have developed a customized extension and defined a default locale, but Chrome is refusing to allow me to include it in the extension bar, displaying the error message mentioned above. I have also ensured that the _locales folder is present in my directory as required. Could this problem be related to the folder or its location?

Manifesto:

{
    "name": "NAMENAMENAMENAME",
    "short_name": "xxx",
    "version": "0.0.3",
    "manifest_version": 2,
    "description": "This performs some specific function.",
        "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}}"
     ]
}

Answer №1

Your manifest is showing signs of being invalid as a whole: the "browser_action" keys are bleeding into the "default_icon" section.

This could confuse Chrome and trigger an inaccurate error message (pointing out the absence of default_locale before mentioning any issues with the manifest structure).

Your current setup:

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

The correct format (include proper icon sizes that align with Chrome's requirements):

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

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

A warning has been issued: CommonsChunkPlugin will now only accept one argument

I am currently working on building my Angular application using webpack. To help me with this process, I found a useful link here. In order to configure webpack, I created a webpack.config.js file at the package.json level and added the line "bundle": "web ...

Two components, one scroll bar, both moving within the same plane

For those interested, here is the JSFiddle link for further exploration: https://jsfiddle.net/q6q499ew/ Currently, there is a basic functionality in place where when you scroll past a certain point, an element becomes stuck until you start scrolling back ...

Tips for looping through client.get from the Twitter API with node.js and express

I am in the process of developing an application that can download a specific number of tweets. For this project, I am utilizing node.js and express() within my server.js file. To retrieve data from the Twitter API, I have set up a route app.get('/ap ...

Insert a new key into various JSON lists

In my Laravel5.1 project, I am facing a challenge while attempting to transform the JSON data shown below: "[{"John Doe":"john.gmail.com"},{"Frank Smith":"<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9afce8fbf4f1dafce8fbf4f1 ...

Showing Predefined Date on an HTML Form in an iOS Application

Is there a method to dynamically show the current date within the button that triggers the date picker in an HTML form on an iOS device? This is what currently appears: This is what I want it to automatically display: Below is the code I have implemente ...

Displaying JSON data on a Django template

As I worked on developing a website, I encountered an issue. The JSON data I am sending from views.py to my template is not displaying any content. data = { "philip": {"age": 20, "salary": 10000}, "jerry": {"age": 27, "salary": 30000} } names ...

Updating API calls with form submission in React.js

Currently working on a weather application and attempting to update my API call upon submitting a form. This project marks my initial attempt at developing my own program, and I've encountered an obstacle. The plan is for the user to input a city, cli ...

The Express Validator is unable to send headers to the client once they have already been processed

I recently integrated express-validator in my Express JS project, but encountered a warning when sending invalid fields to my api: UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client This ...

Tips for preventing the unmounting of child components while utilizing JSX's map function

This is a condensed version of a question I previously asked. Hopefully, it's clearer and more comprehensible. Here is a simple application with 3 input fields that accept numbers (disregard the ability to enter non-numbers). The app calculates the s ...

What is the method to trigger the jQuery 'mouseenter' event on an element using Selenium?

Struggling to automate a scenario using selenium where I need to click on a menu element. I've tried various methods, except jQuery. WebDriver normal click and JavaScript click() haven't worked. Can someone assist me with implementing jQuery in s ...

Having difficulty interpreting an encrypted string retrieved from a Web Request using a StreamReader

I am trying to fetch a JSON string from a specific URL, but the string is encrypted and saved as a .txt file. I need to decrypt this string within my application. Below is the HttpWebRequest code I am using to retrieve the response string: public string ...

Encountering a problem while verifying pattern using regular expressions

I'm facing an issue when manually checking if my inputs match the specified patterns. Below is the function I am using for this check: if (!$element.attr("pattern")) return true; let pattern = $element.attr("pattern"); le ...

Challenges with JavaScript objects while using d3.js

I have been working on rendering a map using d3 within an HTML page that is running on a django web framework. One of the examples I came across from d3's sample archives can be found at this link: http://bl.ocks.org/NPashaP/a74faf20b492ad377312 Upon ...

Choose the current parent item using Angular's ng-selected and $index

http://plnkr.co/edit/fwwAd4bn6z2vxVN2FUL7?p=preview On the Plunker page linked above, I am trying to achieve a specific functionality. I would like the 3 dropdown lists to display values A, B, and C initially. When a 4th dropdown option is added, it shoul ...

Using Angular routing without relying on a web server to load templates

Can templates be loaded in Angular without a web server? I came across an example here: https://groups.google.com/forum/#!topic/angular/LXzaAWqWEus but it seems to only print the template paths instead of their content. Is there a functioning example of t ...

Looking for a way to update template variables in copy using grunt?

I am currently utilizing load-grunt-config along with grunt-contrib-copy. My objective is to have the copy task replace certain template tags using the 'process' option. I understand that replacing template tags is feasible based on the grunt-co ...

AJAX isn't quite cooperating - it seems that only the error callback is getting

Even though I have specified both success and error callbacks, the error callback is being triggered even when the status code is 200. In addition, I am also making a curl call to another php file within registry.php. This is what I have attempted: $.aj ...

Transforming Ember's ajax query string

Using ember-model, I am making a request like this: App.Video.find({'sort':'createdAt+asc'}); to retrieve a sorted list of videos. This should result in the following request: http://localhost:1337/api/v1/videos?sort=createdAt+asc How ...

Verify if the parsed JSON data is equal to NSNULL

I need assistance with parsing a JSON response and checking if one of my keys is null. Here is the code I am currently using: var routingNumber = (dic.value(forKey: "result") as! NSDictionary).value(forKey: "routingNumber") as! String When I run this cod ...

Javascript retrieve the style of an element in every possible state

I am interested in retrieving the line height of an element; it's a simple task. Here is a method that I know works: console.log(document.getElementById("myDiv").style.lineHeight); console.log($("#myDiv").css('lineHeight')) ...