diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-13 18:42:49 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-13 18:42:49 +0200 |
commit | a5ec4a9af4582691038ec241dfcafaa5144e5f5a (patch) | |
tree | c11fd4d60e9307fa883cd32e188ac65f206c21a6 /core/js/js.js | |
parent | 2246003a3e9de98abebf03410c71dd6c03ec8e95 (diff) | |
download | nextcloud-server-a5ec4a9af4582691038ec241dfcafaa5144e5f5a.tar.gz nextcloud-server-a5ec4a9af4582691038ec241dfcafaa5144e5f5a.zip |
Move l10n functions to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/core/js/js.js b/core/js/js.js index 127d293cd4c..6a5c04fd2c6 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -221,34 +221,6 @@ Object.assign(window.OC, { }, /** - * Returns the user's locale as a BCP 47 compliant language tag - * - * @return {String} locale string - */ - getCanonicalLocale: function() { - var locale = this.getLocale(); - return typeof locale === 'string' ? locale.replace(/_/g, '-') : locale; - }, - - /** - * Returns the user's locale - * - * @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'); - }, - - /** * Warn users that the connection to the server was lost temporarily * * This function is throttled to prevent stacked notfications. |