summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js
index a7dba7981f7..c1713539f4f 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -791,6 +791,15 @@ var OCP = {},
* @return {String} locale string
*/
getLocale: function() {
+ return $('html').data('locale');
+ },
+
+ /**
+ * Returns the user's language
+ *
+ * @returns {String} language string
+ */
+ getLanguage: function () {
return $('html').prop('lang');
},