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

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaimund Schlüßler <raimund.schluessler@mailbox.org>2018-09-21 22:26:56 +0300
committerRaimund Schlüßler <raimund.schluessler@mailbox.org>2019-01-25 22:36:27 +0300
commit94f77a95161125f7c270b07bcb6a57b57b492cd9 (patch)
treef1b4941e305ae1b90d842c64229dc2f695ac63e6 /src/main.js
parentc57157c874ad6e79c3662541511aa1e816939712 (diff)
Configure moment locale according to server locale
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.js b/src/main.js
index ba1ffff2..407043b9 100644
--- a/src/main.js
+++ b/src/main.js
@@ -71,6 +71,8 @@ OCA.Tasks.App = new Vue({
}
},
beforeMount() {
+ // Configure the locale of moment.js
+ moment.locale(OC.getLocale().replace('_', '-').toLowerCase())
this.$store.dispatch('loadCollections')
this.$store.dispatch('loadSettings')
},