diff options
Diffstat (limited to 'src/helpers/index.js')
-rw-r--r-- | src/helpers/index.js | 4 |
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()) } |