File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 47
47
// You have a reference to `t` in order to translate things.
48
48
// Returning `undefined` will fallback to the default round name in the current language.
49
49
50
- if ( info . fractionOfFinal === 1 / 2 )
51
- return `${ t ( `abbreviations.${ info . groupType } ` ) } Semi Finals`
50
+ if ( info . fractionOfFinal === 1 / 2 ) {
51
+ if ( info . groupType === 'single-bracket' ) {
52
+ // Single elimination
53
+ return 'Semi Finals'
54
+ } else {
55
+ // Double elimination
56
+ return `${ t ( `abbreviations.${ info . groupType } ` ) } Semi Finals`
57
+ }
58
+ }
52
59
53
60
if ( info . finalType === 'grand-final' ) {
54
61
if ( info . roundCount > 1 ) {
71
78
</ script >
72
79
</ body >
73
80
74
- </ html >
81
+ </ html >
Original file line number Diff line number Diff line change 56
56
// You have a reference to `t` in order to translate things.
57
57
// Returning `undefined` will fallback to the default round name in the current language.
58
58
59
- if ( info . fractionOfFinal === 1 / 2 )
60
- return `${ t ( `abbreviations.${ info . groupType } ` ) } Semi Finals`
59
+ if ( info . fractionOfFinal === 1 / 2 ) {
60
+ if ( info . groupType === 'single-bracket' ) {
61
+ // Single elimination
62
+ return 'Semi Finals'
63
+ } else {
64
+ // Double elimination
65
+ return `${ t ( `abbreviations.${ info . groupType } ` ) } Semi Finals`
66
+ }
67
+ }
61
68
62
69
if ( info . finalType === 'grand-final' ) {
63
70
if ( info . roundCount > 1 ) {
80
87
</ script >
81
88
</ body >
82
89
83
- </ html >
90
+ </ html >
You can’t perform that action at this time.
0 commit comments