Merge pull request #21781 from nextcloud/backport/21778/stable18

[stable18] Set the moment locale even earlier
This commit is contained in:
Roeland Jago Douma 2020-07-09 21:34:21 +02:00 committed by GitHub
commit 637fc70c81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -98,15 +98,15 @@ const initLiveTimestamps = () => {
}, 30 * 1000)
}
/**
* Set users locale to moment.js as soon as possible
*/
moment.locale(OC.getLocale())
/**
* Initializes core
*/
export const initCore = () => {
/**
* Set users locale to moment.js as soon as possible
*/
moment.locale(OC.getLocale())
const userAgent = window.navigator.userAgent
const msie = userAgent.indexOf('MSIE ')
const trident = userAgent.indexOf('Trident/')