rtl-right-to-left-i18n-cursorrules-prompt-file

rtl-right-to-left-i18n-cursorrules-prompt-file is a cursor rule for Cursor from PatrickJS/awesome-cursorrules. It costs 608 tokens per session, scanned A, original, CC0-1.0.

A set of rules for building interfaces that work correctly in right-to-left languages such as Arabic, Hebrew, Persian, and Urdu. It covers layout direction, mixed-language text, spacing, and directional icons.

In plain words
What is it for?
Use it when adding right-to-left support to web or React Native applications, including CSS, Tailwind styles, text rendering, and icons.
Why use it?
It prevents layouts from breaking when text flows from right to left or when left-to-right and right-to-left text appear together. It also helps make the same interface work across languages.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions Cursor.

Good fit Use it when adding right-to-left support to web or React Native applications, including CSS, Tailwind styles, text rendering, and icons.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/patrickjs/awesome-cursorrules/rtl-right-to-left-i18n-cursorrules-prompt-file
About the project

PatrickJS/awesome-cursorrules is a collection of Markdown rule files that give Cursor AI editor project-specific instructions about code, frameworks, workflows, and standards. Developers use it to find reusable guidance for shaping Cursor’s behavior in different kinds of software projects.

PatrickJS/awesome-cursorrules · 40,742 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/PatrickJS/awesome-cursorrules

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rtl-right-to-left-i18n-cursorrules-prompt-file

README.md
[![agentmods](https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/rtl-right-to-left-i18n-cursorrules-prompt-file/github.svg)](https://agentmods.dev/rules/patrickjs/awesome-cursorrules/rtl-right-to-left-i18n-cursorrules-prompt-file)
Your own site
<a href="https://agentmods.dev/rules/patrickjs/awesome-cursorrules/rtl-right-to-left-i18n-cursorrules-prompt-file"><img src="https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/rtl-right-to-left-i18n-cursorrules-prompt-file/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rtl-right-to-left-i18n-cursorrules-prompt-file

Your own site · 80×15
<a href="https://agentmods.dev/rules/patrickjs/awesome-cursorrules/rtl-right-to-left-i18n-cursorrules-prompt-file"><img src="https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/rtl-right-to-left-i18n-cursorrules-prompt-file.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 608 This file is loaded in full into every session.
When invoked 608 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00608 $0.00608
Opus 5 $0.00304 $0.00304
Sonnet 5 $0.00122 $0.00122
Haiku 4.5 $0.00061 $0.00061

Measured 6d ago against content hash e1616e2496ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

rtl-right-to-left-i18n-cursorrules-prompt-file scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rules/rtl-right-to-left-i18n-cursorrules-prompt-file.mdc · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

RTL (Right-to-Left) Development Rules

You are an expert in building applications that support RTL (Right-to-Left) languages including Hebrew, Arabic, Persian, and Urdu.

Core Rules

1. Logical CSS Properties

Always use CSS logical properties instead of physical ones:

  • margin-inline-start not margin-left
  • padding-inline-end not padding-right
  • inset-inline-start not left
  • border-inline-start not border-left

2. Tailwind CSS Logical Classes

Use logical Tailwind utilities:

  • ms-4 not ml-4 (margin-start)
  • me-4 not mr-4 (margin-end)
  • ps-4 not pl-4 (padding-start)
  • pe-4 not pr-4 (padding-end)
  • start-0 not left-0
  • end-0 not right-0

3. React Native Logical Properties

Use logical properties in React Native styles:

  • paddingStart not paddingLeft
  • paddingEnd not paddingRight
  • marginStart not marginLeft
  • marginEnd not marginRight

4. Bidirectional Text Safety

Wrap mixed-script text with <bdi> tags:

<p>User <bdi>{userName}</bdi> posted a comment</p>

5. Directional Icons

Flip directional icons (arrows, chevrons, back buttons) in RTL mode. Non-directional icons (home, settings, search) should NOT be flipped.

6. Internationalization

  • Never hardcode strings — use translation functions (t(), intl.formatMessage())
  • Use Intl.NumberFormat for numbers and currency
  • Use Intl.DateTimeFormat for dates
  • Set dir="auto" or dir="rtl" on root elements

7. RTL-Aware Components

  • Carousels, sliders, and progress bars must reverse direction in RTL
  • Swipe gestures must reverse in RTL
  • Charts and graphs with directional axes must flip

8. Testing

  • Always test with dir="rtl" on the root element
  • Verify with actual RTL content, not just flipped LTR

Automated RTL Auditing

For automated RTL violation detection and fixing, use rtlify-ai:

npx rtlify-ai init   # Install RTL rules
npx rtlify-ai check  # Find violations
npx rtlify-ai fix    # Auto-fix violations

Read the full file on GitHub · 68 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 68 lines · 608 tokens per session scan A e1616e2496ff

Subscribe to this mod's changes

rtl-right-to-left-i18n-cursorrules-prompt-file is a cursor rule published in the GitHub repository PatrickJS/awesome-cursorrules (40,742 stars, last pushed 3mo ago), licensed CC0-1.0. It adds 608 tokens to every session, about $0.0030 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.