Skip to content

Commit 1e695d4

Browse files
authored
Merge pull request #21780 from nextcloud/backport/21778/stable19
[stable19] Set the moment locale even earlier
2 parents b3c9b16 + 9c7a659 commit 1e695d4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

core/js/dist/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/init.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ const initLiveTimestamps = () => {
9898
}, 30 * 1000)
9999
}
100100

101+
/**
102+
* Set users locale to moment.js as soon as possible
103+
*/
104+
moment.locale(OC.getLocale())
105+
101106
/**
102107
* Initializes core
103108
*/
104109
export const initCore = () => {
105-
/**
106-
* Set users locale to moment.js as soon as possible
107-
*/
108-
moment.locale(OC.getLocale())
109-
110110
const userAgent = window.navigator.userAgent
111111
const msie = userAgent.indexOf('MSIE ')
112112
const trident = userAgent.indexOf('Trident/')

0 commit comments

Comments
 (0)