summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/common/extensions/api/i18n.json
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/common/extensions/api/i18n.json')
-rw-r--r--chromium/chrome/common/extensions/api/i18n.json15
1 files changed, 13 insertions, 2 deletions
diff --git a/chromium/chrome/common/extensions/api/i18n.json b/chromium/chrome/common/extensions/api/i18n.json
index 510256ce2a9..d29c0e69cf8 100644
--- a/chromium/chrome/common/extensions/api/i18n.json
+++ b/chromium/chrome/common/extensions/api/i18n.json
@@ -11,7 +11,7 @@
{
"name": "getAcceptLanguages",
"type": "function",
- "description": "Gets the accept-languages of the browser. This is different from the locale used by the browser; to get the locale, use <code>window.navigator.language</code>.",
+ "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).",
"parameters": [
{
"type": "function",
@@ -31,7 +31,7 @@
{
"type": "string",
"name": "messageName",
- "description": "The name of the message, as specified in the <a href='i18n-messages.html'><code>messages.json</code></a> file."
+ "description": "The name of the message, as specified in the <a href='i18n-messages'><code>messages.json</code></a> file."
},
{
"type": "any",
@@ -44,6 +44,17 @@
"type": "string",
"description": "Message localized for current locale."
}
+ },
+ {
+ "name": "getUILanguage",
+ "type": "function",
+ "nocompile": true,
+ "description": "Gets the browser UI language of the browser. This is different from $(ref:i18n.getAcceptLanguages) which returns the preferred user languages.",
+ "parameters": [],
+ "returns": {
+ "type": "string",
+ "description": "The browser UI language code such as en-US or fr-FR."
+ }
}
],
"events": []