You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you provide an example of a project that throws the reported error? Did you possibly put an invalid value in the default_locale field in manifest.json?
From the internationalization page, I understood that this was how it is supposed to be. Is en-US an invalid value?
Note that if the subtag includes a basic language plus a regional variant, then the language and variant are conventionally separated using a hyphen: for example, "en-US". However, in the directories under _locales, the separator must be an underscore: "en_US".
Thanks for the example. The directories must use underscores, but the default_locale field can apparently contain hyphens. I've submitted a PR to address the issue.
Is this a feature request or a bug?
Bug
What is the current behavior?
web-ext build
an extension with a localization for en-US throws errors. The folder name is supposed to be "en_US" but web-ext complains that it's not "en-US".What is the expected or desired behavior?
Should not throw errors.
Version information (for bug reports)
$ node --version && npm --version && web-ext --version
v10.15.2
6.9.0
3.0.0
The text was updated successfully, but these errors were encountered: