Who it is forA developer building a product for Arabic or Hebrew speaking users who needs mirrored layouts and keyboard navigation.
The problemSetting CSS direction alone does not configure React Aria keyboard navigation, calendars, or portalled menus.
The outcomeAn app whose layout, navigation, and overlays follow right-to-left direction, with the provider set in the root layout.
What you need first
- A model provider API key (OpenAI, Anthropic, Google, OpenRouter, Vercel AI Gateway, Groq, or xAI)
- A GitHub account and a Vercel account for the one-click deploy
- Node.js and npm for local runs or CLI installs
- A Next.js project if you want to add components to existing code
Steps
- Run
npx boardui@latest add directionin your existing project. - Wrap the children in
app/layout.tsxwithDirectionProviderand set the document language, such ashefor Hebrew. - Replace physical left and right spacing with logical styles such as
ps/peandstart/end. - Translate labels and accessible names in your own translation layer and check the layout in the browser.
Prompt for your agent
In the repo BoardUI/boardui, follow the RTL setup in the README for my project at <project-path> with locale <locale>. Expected output: the root layout wrapped in DirectionProvider and the document set to the right language. Verify that keyboard navigation and the date picker still work in the target locale.
Caveat. The README says direction and translation are configured separately, so right-to-left layout alone will still show English text until you translate it.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for BoardUI/boardui and "Switch the BoardUI app to Arabic or Hebrew layout"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer