1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
8 "description": "Use the <code>chrome.i18n</code> infrastructure to implement internationalization across your whole app or extension.",
12 "name": "getAcceptLanguages",
14 "description": "Gets the accept-languages of the browser. This is different from the locale used by the browser; to get the locale, use $(ref:i18n.getUILanguage).",
20 {"name": "languages", "type": "array", "items": {"type": "string"}, "description": "Array of the accept languages of the browser, such as en-US,en,zh-CN"}
29 "description": "Gets the localized string for the specified message. If the message is missing, this method returns an empty string (''). If the format of the <code>getMessage()</code> call is wrong — for example, <em>messageName</em> is not a string or the <em>substitutions</em> array has more than 9 elements — this method returns <code>undefined</code>.",
33 "name": "messageName",
34 "description": "The name of the message, as specified in the <a href='i18n-messages.html'><code>messages.json</code></a> file."
38 "name": "substitutions",
40 "description": "Up to 9 substitution strings, if the message requires any."
45 "description": "Message localized for current locale."
49 "name": "getUILanguage",
52 "description": "Gets the browser UI language of the browser. This is different from $(ref:i18n.getAcceptLanguages) which returns the preferred user languages.",
56 "description": "The browser UI language code such as en-US or fr-FR."