diff --git a/services/app/apps/codebattle/assets/js/widgets/pages/tournament/StageTitle.jsx b/services/app/apps/codebattle/assets/js/widgets/pages/tournament/StageTitle.jsx index 1bef3c1ee..0dd1cc393 100644 --- a/services/app/apps/codebattle/assets/js/widgets/pages/tournament/StageTitle.jsx +++ b/services/app/apps/codebattle/assets/js/widgets/pages/tournament/StageTitle.jsx @@ -4,18 +4,20 @@ import capitalize from 'lodash/capitalize'; import mapStagesToTitle from '../../config/mapStagesToTitle'; -function StageTitle({ stage, stagesLimit, hideDescription = false }) { - if (stage === stagesLimit - 1) { - return hideDescription ? 'Final' : 'Final stage'; - } - - if (stage === stagesLimit - 2) { - return hideDescription ? 'Semi-final' : 'Semi-final stage'; - } +function StageTitle({ stage, _stagesLimit, hideDescription = false }) { + // TODO: fix tmp translation + // + // if (stage === stagesLimit - 1) { + // return hideDescription ? 'Раунд' : 'Раунд'; + // } + // + // if (stage === stagesLimit - 2) { + // return hideDescription ? 'Раунд' : '-final stage'; + // } return hideDescription ? capitalize(mapStagesToTitle[stage]) - : `Stage ${mapStagesToTitle[stage] || (stage + 1)}`; + : `Раунд ${(stage + 1)}`; } export default memo(StageTitle);