Skip to content

Document right-to-left layouts in the locale recipe - #323

Open
DanielJette wants to merge 1 commit into
mainfrom
docs/rtl-layouts
Open

DanielJette wants to merge 1 commit into
mainfrom
docs/rtl-layouts

Conversation

@DanielJette

Copy link
Copy Markdown
Contributor

What does this change accomplish?

The locale recipe never mentions right-to-left layouts, and docs searches for rtl return nothing about them.

How have you achieved it?

  • Adds "Right-to-left layouts" under API 24+ in recipes/2-locale.md.
  • Testify applies the locale with Configuration.setLocales(), which also sets the layout direction.
  • Notes android:supportsRtl, that left-to-right text stays left to right, and where the baseline folder goes. Includes the import for overrideResourceConfiguration.

Scope of Impact and Testing instructions

Documentation only; no library or plugin changes, so no CHANGELOG entry. Built locally with yarn build from docs/. No broken links. Both examples were recorded in the Legacy sample on an API 37 emulator: Arabic with configure { locale } and Hebrew with overrideResourceConfiguration both produced mirrored layouts in …-ar and …-he folders. That test code was not committed.

The commit includes [skip ci] so CI doesn't run for this docs-only change.

Notice

Warning

This change must keep main in a shippable state; it may be shipped without further notice.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AgUU49S4wSWd7vhJS7kEmU

Add a right-to-left section to the locale recipe, with
ScreenshotScenarioRule and ScreenshotRule examples and the requirements
for layouts to mirror.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AgUU49S4wSWd7vhJS7kEmU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant