File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -512,11 +512,7 @@ export class BracketsViewer {
512
512
* @param match Results of the match.
513
513
* @param label Label of the match.
514
514
*/
515
- private renderMatchLabel ( opponents : HTMLElement , match : Match , label ?: string ) : void {
516
- const childCountLabel = `Bo${ match . child_count } ` ;
517
-
518
- label = label || '' ;
519
-
515
+ private renderMatchLabel ( opponents : HTMLElement , match : Match , label = '' ) : void {
520
516
if ( this . config . separatedChildCountLabel ) {
521
517
opponents . append ( dom . createMatchLabel ( label , lang . getMatchStatus ( match . status ) ) ) ;
522
518
@@ -527,6 +523,7 @@ export class BracketsViewer {
527
523
}
528
524
529
525
if ( match . child_count > 0 ) {
526
+ const childCountLabel = lang . t ( 'common.best-of-x' , { x : match . child_count } ) ;
530
527
const joined = label ? `${ label } , ${ childCountLabel } ` : childCountLabel ;
531
528
opponents . append ( dom . createMatchLabel ( joined , lang . getMatchStatus ( match . status ) ) ) ;
532
529
}
You can’t perform that action at this time.
0 commit comments