Skip to content

Is it able to change the Round Name #93

Answered by Drarig29
MeiYien16 asked this question in Q&A
Discussion options

You must be logged in to vote

Is it able to change the Round Name from Round 1, Round 2 to Quarter Finals, Semi Finals.

No it wasn't possible to do so yet, because I'm relying on i18next, which doesn't support what I wanted.

I just added a new config property for this, named customRoundName.
You can use it like this (🚧 edit: info.group was renamed to info.groupType):

customRoundName: (info, t) => {
// You have a reference to `t` in order to translate things.
// Returning `undefined` will fallback to the default round name in the current language.
if (info.fractionOfFinal === 1 / 2)
return `${t(`abbreviations.${info.g…

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
7 replies
@MeiYien16
Comment options

@Drarig29
Comment options

@MeiYien16
Comment options

@Drarig29
Comment options

@Drarig29
Comment options

Answer selected by Drarig29
Comment options

You must be logged in to vote
3 replies
@Drarig29
Comment options

@MeiYien16
Comment options

@Drarig29
Comment options

Comment options

You must be logged in to vote
1 reply
@Drarig29
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants