Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/index.js')
-rw-r--r--src/helpers/index.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/helpers/index.js b/src/helpers/index.js
index bebca3fc..44c8951f 100644
--- a/src/helpers/index.js
+++ b/src/helpers/index.js
@@ -20,11 +20,9 @@
*
*/
-import { getLanguage } from 'nextcloud-server/dist/l10n'
-
const languageToBCP47 = () => {
// loleaflet expects a BCP47 language tag syntax
- return getLanguage()
+ return OC.getLanguage()
.replace(/^([a-z]{2}).*_([A-Z]{2})$/, (match, p1, p2) => p1 + '-' + p2.toLowerCase())
}