i18n-rtl
Installation
SKILL.md
MUI Internationalization & RTL Support
1. RTL Setup
Set the document direction and configure the MUI theme:
// index.html — set dir on <html>
<html dir="rtl" lang="ar">
// theme.ts
import { createTheme } from '@mui/material/styles';
const rtlTheme = createTheme({
direction: 'rtl',
});
Install the Emotion RTL plugin for automatic style flipping: