File tree Expand file tree Collapse file tree 8 files changed +11
-10
lines changed Expand file tree Collapse file tree 8 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -58,3 +58,4 @@ duration7D: 7d
58
58
duration30D : 30d
59
59
duration1Y : 1y
60
60
durationAll : all
61
+ locale : en-US
Original file line number Diff line number Diff line change 57
57
<h4 >{incident .title .replace (" 🛑" , " " ).replace (" ⚠️" , " " ).trim ()}</h4 >
58
58
<div >
59
59
{config .i18n .activeIncidentSummary
60
- .replace (/ \$ DATE/ g , new Date (incident .created_at ).toLocaleString ())
60
+ .replace (/ \$ DATE/ g , new Date (incident .created_at ).toLocaleString (config . i18n . locale ))
61
61
.replace (/ \$ POSTS/ g , incident .comments )}
62
62
</div >
63
63
</div >
Original file line number Diff line number Diff line change 66
66
? config .i18n .scheduledMaintenanceSummaryStarted
67
67
: config .i18n .scheduledMaintenanceSummaryStarts
68
68
)
69
- .replace (/ \$ DATE/ g , new Date (incident .metadata .start ).toLocaleString ())
69
+ .replace (/ \$ DATE/ g , new Date (incident .metadata .start ).toLocaleString (config . i18n . locale ))
70
70
.replace (
71
71
/ \$ DURATION/ g ,
72
72
Math .floor (
Original file line number Diff line number Diff line change 42
42
.map ((commit ) => parseInt (commit .commit .message .split (" in " )[1 ].split (" ms" )[0 ]));
43
43
labels = commits
44
44
.filter ((commit ) => commit .commit .message .includes (" ms) [skip ci]" ))
45
- .map ((commit ) => new Date (commit .commit .committer .date ).toLocaleString ());
45
+ .map ((commit ) => new Date (commit .commit .committer .date ).toLocaleString (config . i18n . locale ));
46
46
loading = false ;
47
47
});
48
48
</script >
Original file line number Diff line number Diff line change 53
53
<h2 >{config .i18n .pastIncidents }</h2 >
54
54
{#each incidents as incident }
55
55
{#if incident .showHeading }
56
- <h3 >{new Date (incident .created_at ).toLocaleDateString ()}</h3 >
56
+ <h3 >{new Date (incident .created_at ).toLocaleDateString (config . i18n . locale )}</h3 >
57
57
{/if }
58
58
<article class ="down link {incident .title .includes (' degraded' ) ? ' degraded' : ' ' }" >
59
59
<div class =" f" >
Original file line number Diff line number Diff line change 95
95
? config .i18n .startedAt
96
96
: config .i18n .startsAt }
97
97
</dt >
98
- <dd >{new Date (incident .metadata .start ).toLocaleString ()}</dd >
98
+ <dd >{new Date (incident .metadata .start ).toLocaleString (config . i18n . locale )}</dd >
99
99
{:else }
100
100
<dt >{config .i18n .incidentOpenedAt }</dt >
101
- <dd >{new Date (incident .created_at ).toLocaleString ()}</dd >
101
+ <dd >{new Date (incident .created_at ).toLocaleString (config . i18n . locale )}</dd >
102
102
{/if }
103
103
{#if incident .metadata .start && incident .metadata .end }
104
104
<dt >{config .i18n .duration }</dt >
114
114
</dd >
115
115
{:else if incident .closed_at }
116
116
<dt >{config .i18n .incidentClosedAt }</dt >
117
- <dd >{new Date (incident .closed_at ).toLocaleString ()}</dd >
117
+ <dd >{new Date (incident .closed_at ).toLocaleString (config . i18n . locale )}</dd >
118
118
{/if }
119
119
</dl >
120
120
<div class =" r" >
134
134
{@html config .i18n .incidentCommentSummary
135
135
.replace (
136
136
/ \$ DATE/ g ,
137
- ` <a href=${comment .html_url }>${new Date (comment .created_at ).toLocaleString ()}</a> `
137
+ ` <a href=${comment .html_url }>${new Date (comment .created_at ).toLocaleString (config . i18n . locale )}</a> `
138
138
)
139
139
.replace (/ \$ AUTHOR/ g , ` <a href=${comment .user .html_url }>@${comment .user .login }</a> ` )}
140
140
</div >
Original file line number Diff line number Diff line change 52
52
<h2 >{config .i18n .pastIncidents }</h2 >
53
53
{#each incidents as incident }
54
54
{#if incident .showHeading }
55
- <h3 >{new Date (incident .created_at ).toLocaleDateString ()}</h3 >
55
+ <h3 >{new Date (incident .created_at ).toLocaleDateString (config . i18n . locale )}</h3 >
56
56
{/if }
57
57
<article class ="down link {incident .title .includes (' degraded' ) ? ' degraded' : ' ' }" >
58
58
<div class =" f" >
Original file line number Diff line number Diff line change 46
46
<h2 >{config .i18n .pastScheduledMaintenance }</h2 >
47
47
{#each incidents as incident }
48
48
{#if incident .showHeading }
49
- <h3 >{new Date (incident .created_at ).toLocaleDateString ()}</h3 >
49
+ <h3 >{new Date (incident .created_at ).toLocaleDateString (config . i18n . locale )}</h3 >
50
50
{/if }
51
51
<article class =" link degraded" >
52
52
<div class =" f" >
You can’t perform that action at this time.
0 commit comments