Back to Content

default_locale

files/en-us/mozilla/add-ons/webextensions/manifest.json/default_locale/index.md

latest887 B
Original Source
<table class="fullwidth-table standard-table"> <tbody> <tr> <th scope="row">Type</th> <td><code>String</code></td> </tr> <tr> <th scope="row">Mandatory</th> <td> Contingent: must be present if the _locales subdirectory is present, must be absent otherwise. </td> </tr> <tr> <th scope="row">Example</th> <td><pre class="brush: json">"default_locale": "en"</pre></td> </tr> </tbody> </table>

This key must be present if the extension contains the _locales directory, and must be absent otherwise. It identifies a subdirectory of _locales, and this subdirectory will be used to find the default strings for your extension.

See Internationalization.

Example

json
"default_locale": "en"

Browser compatibility

{{Compat}}