வலமிருந்து இடமாக எழுதப்படும் மொழிகள் மற்றும் :lang()

இலவசம்3 நிமிடம் படிக்க

அனைத்து வழிகாட்டிகளும்
வலைத்தள உரிமையாளர்களுக்கு

Lango7 sets the right lang on <html> for every language, so the standard :lang() selector works without extra classes.

<html lang="ar">

Text runs right to left, the layout stays

On right-to-left languages such as Arabic, Lango7 makes the text run right to left: paragraphs, headings, lists, table cells and form fields. Your layout is not mirrored, so a theme without right-to-left styles still looks right. Email addresses, web addresses, numbers in inputs and code stay left to right.

The rule has zero specificity, so any direction you set in your own CSS wins.

Mirror the whole page

If your theme has right-to-left styles (an rtl.css), turn on the full mirrored layout. Lango7 then adds dir="rtl" to <html>:

add_filter( 'lango7_rtl_layout', '__return_true' );

Style by language

/* Any Arabic page */
:lang(ar) h1 { font-family: "Noto Kufi Arabic", sans-serif; }

/* Only when the mirrored layout is on */
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

குறிப்புகள்

  • Use logical properties such as margin-inline-start instead of margin-left, so layouts flip by themselves when mirrored.
  • இடது அல்லது வலதுபுறம் சுட்டிக்காட்டும் ஐகான்களைச் சரிபார்க்கவும்.
  • Arabic works with Free Translate. Persian and Urdu need Lango7 Pro.