aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-05-13 20:27:35 +0200
committerGitHub <noreply@github.com>2019-05-13 20:27:35 +0200
commit5ee6872c8ab688451b2489d35a9a19bbce457e98 (patch)
treeec8a57a84e7268ed79638b64e7ff06afb7fa91c4 /core/js/js.js
parent06062d6d5c3c1b87ce554cac8a605c08d2c7a4ef (diff)
parenta5ec4a9af4582691038ec241dfcafaa5144e5f5a (diff)
downloadnextcloud-server-5ee6872c8ab688451b2489d35a9a19bbce457e98.tar.gz
nextcloud-server-5ee6872c8ab688451b2489d35a9a19bbce457e98.zip
Merge pull request #15518 from nextcloud/refactor/l10n-funcs-bundle
Move l10n functions to the bundle
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js28
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.