OLD | NEW |
1 <h1>Formats: Locale-Specific Messages</h1> | 1 <h1>Formats: Locale-Specific Messages</h1> |
2 | 2 |
3 | 3 |
4 <p> | 4 <p> |
5 Each internationalized extension has at least one | 5 Each internationalized extension has at least one |
6 file named <code>messages.json</code> | 6 file named <code>messages.json</code> |
7 that provides locale-specific strings for the extension. | 7 that provides locale-specific strings for the extension. |
8 This page describes the format of <code>messages.json</code> files. | 8 This page describes the format of <code>messages.json</code> files. |
9 For information on how to internationalize and localize your extension, | 9 For information on how to internationalize and localize your extension, |
10 see the <a href="i18n.html">Internationalization</a> page. | 10 see the <a href="i18n.html">Internationalization</a> page. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 "user": { | 69 "user": { |
70 "content": "$1", | 70 "content": "$1", |
71 "example": "Cira" | 71 "example": "Cira" |
72 } | 72 } |
73 } | 73 } |
74 } | 74 } |
75 } | 75 } |
76 </pre> | 76 </pre> |
77 | 77 |
78 | 78 |
79 <h2>Field details</h2> | 79 <h2 id="field_details">Field details</h2> |
80 | 80 |
81 <p> | 81 <p> |
82 This section describes each field | 82 This section describes each field |
83 that can appear in a <code>messages.json</code> file. | 83 that can appear in a <code>messages.json</code> file. |
84 For details on how the messages file is used — | 84 For details on how the messages file is used — |
85 for example, what happens when a locale doesn't define | 85 for example, what happens when a locale doesn't define |
86 all the messages — | 86 all the messages — |
87 see <a href="i18n.html">Internationalization</a>. | 87 see <a href="i18n.html">Internationalization</a>. |
88 </p> | 88 </p> |
89 | 89 |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 <pre> | 320 <pre> |
321 "placeholders": { | 321 "placeholders": { |
322 "our_site": { | 322 "our_site": { |
323 "content": "Example.com", | 323 "content": "Example.com", |
324 }, | 324 }, |
325 "user": { | 325 "user": { |
326 "content": "$1", | 326 "content": "$1", |
327 "example": "Cira" | 327 "example": "Cira" |
328 } | 328 } |
329 } | 329 } |
330 </pre> | 330 </pre> |
OLD | NEW |