Skip to Content
react-brackets

Right to left and languages

Brackets flow right to left on RTL pages, and every string can be translated.

ربع النهائي

  1. الهلال2
    الرائد3
  2. الأهلي4
    الشباب3
  3. النصر1
    الفتح0
  4. الاتحاد
    التعاون

نصف النهائي

  1. الرائد
    الأهلي
  2. النصر
    لم يحدد

النهائي

  1. لم يحدد
    لم يحدد

Set dir="rtl" on the bracket or any parent. The tree, connector lines, swipe direction, arrow keys and pagination all flip.

<div dir="rtl" lang="ar">
  <Bracket
    stage={singleElimination(clubs, { roundName: (index) => arabicRoundNames[index] })}
    labels={{ tbd: 'لم يحدد', bye: 'تأهل مباشر', previous: 'الجولة السابقة', next: 'الجولة التالية' }}
  />
</div>

Labels

LabelDefault
tbdTBD
byeBye
previous / nextPrevious round / Next round
roundsRounds
zoomIn / zoomOut / zoomResetZoom in / Zoom out / Fit to view

Round names come from roundName on each format, and group names from groupName on roundRobin.

On this page