Ant design modal rtl not working for the title

OFFICIAL DOCS

In the example provided above, just changing the direction rtl is supposed to work. But all my components are being rendered properly except for the modal title, it is still ltr instead of rtl. How do I override this behavior?