aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/mozilla/add-ons/webextensions/manifest.json/default_locale/index.html
blob: f4d09005f8d6ea7f6f68e3a53d63e5dc17e2ac3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
title: default_locale
slug: Mozilla/Add-ons/WebExtensions/manifest.json/default_locale
tags:
  - default_locale
translation_of: Mozilla/Add-ons/WebExtensions/manifest.json/default_locale
---
<p>{{AddonSidebar}}</p>

<table class="fullwidth-table standard-table">
 <tbody>
  <tr>
   <th scope="row" style="width: 30%;">Type</th>
   <td><code>String</code></td>
  </tr>
  <tr>
   <th scope="row">强制性</th>
   <td>可能发生的:如果存在_locales子目录,必须存在,否则不存在。</td>
  </tr>
  <tr>
   <th scope="row">例子</th>
   <td>
    <pre class="brush: json">
"default_locale": "en"</pre>
   </td>
  </tr>
 </tbody>
</table>

<p>如果扩展名包含_locales目录,则该key必须存在,否则不得存在。它标识 _locales的一个子目录,该子目录将用于查找扩展名的默认字符串。</p>

<p>见 <a href="/en-US/Add-ons/WebExtensions/Internationalization">国际化</a> 。</p>

<h2 id="范例">范例</h2>

<pre class="brush: json">"default_locale": "en"</pre>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{Compat("webextensions.manifest.default_locale")}}</p>