Set the moment locale even earlier
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
This commit is contained in:
parent
0fe7949f42
commit
9c7a659b5b
File diff suppressed because one or more lines are too long
|
@ -98,15 +98,15 @@ const initLiveTimestamps = () => {
|
||||||
}, 30 * 1000)
|
}, 30 * 1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Initializes core
|
|
||||||
*/
|
|
||||||
export const initCore = () => {
|
|
||||||
/**
|
/**
|
||||||
* Set users locale to moment.js as soon as possible
|
* Set users locale to moment.js as soon as possible
|
||||||
*/
|
*/
|
||||||
moment.locale(OC.getLocale())
|
moment.locale(OC.getLocale())
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes core
|
||||||
|
*/
|
||||||
|
export const initCore = () => {
|
||||||
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/')
|
||||||
|
|
Loading…
Reference in New Issue