mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 03:02:01 -04:00
Merge pull request #21780 from nextcloud/backport/21778/stable19
[stable19] Set the moment locale even earlier
This commit is contained in:
commit
1e695d4a43
2 changed files with 6 additions and 6 deletions
2
core/js/dist/main.js
vendored
2
core/js/dist/main.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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/')
|
||||
|
|
|
|||
Loading…
Reference in a new issue