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:
-rw-r--r--src/helpers/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers/index.js b/src/helpers/index.js
index 177a935b..31cf98b4 100644
--- a/src/helpers/index.js
+++ b/src/helpers/index.js
@@ -20,11 +20,11 @@
*
*/
-import { getLanguage } from 'nextcloud-l10n'
+import { getLanguage, getLocale } from 'nextcloud-l10n'
const languageToBCP47 = () => {
// loleaflet expects a BCP47 language tag syntax
- return getLanguage()
+ return (getLanguage() + '-' + getLocale())
.replace(/^([a-z]{2}).*_([A-Z]{2})$/, (match, p1, p2) => p1 + '-' + p2.toLowerCase())
}