Skip to content
Snippets Groups Projects
Unverified Commit 275f8818 authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #21778 from nextcloud/fix/moment-locale-early

Set the moment locale even earlier
parents 10d862e2 c25ce9ad
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -98,15 +98,15 @@ const initLiveTimestamps = () => { ...@@ -98,15 +98,15 @@ const initLiveTimestamps = () => {
}, 30 * 1000) }, 30 * 1000)
} }
/**
* Set users locale to moment.js as soon as possible
*/
moment.locale(OC.getLocale())
/** /**
* Initializes core * Initializes core
*/ */
export const initCore = () => { export const initCore = () => {
/**
* Set users locale to moment.js as soon as possible
*/
moment.locale(OC.getLocale())
const userAgent = window.navigator.userAgent const userAgent = window.navigator.userAgent
const msie = userAgent.indexOf('MSIE ') const msie = userAgent.indexOf('MSIE ')
const trident = userAgent.indexOf('Trident/') const trident = userAgent.indexOf('Trident/')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment