Skip to content

CollectionFramer component / Edition 02

Language switch

Most language switches change the words and stop there. This one writes lang and dir, flips the layout, converts the numerals, mirrors the icons, and remembers what you chose, so the second language reads like it was designed first.

Free

No licence fee. Yours for your own and client projects.

Get it free
02One switch, two directions.
Language switch: One switch, two directions.

Highlights

  1. lang and dir, written correctly

    Screen readers change voice and the whole page flips direction. Works on the document, or on a section you choose.

    lang and dir, written correctly
  2. Numerals, alignment and icons

    Converts 0 to 9 to ٠ to ٩ inside layers you mark, mirrors explicit text alignment, and flips the icons you mark.

    Numerals, alignment and icons
  3. Remembered, and linkable

    It remembers the choice, reads ?lang=ar from a link, and keeps every switch on the page in sync. No flash of the other language on load.

    Remembered, and linkable

How to use

  1. Drop it in

    Paste the component link into your project and drop an instance in the header or footer.

  2. Choose a mode

    Framer Localization for an indexable multilingual site, or paired layers on any plan.

  3. Mark your layers

    Name each version lang:en Title and lang:ar Title. Mark numbers num: … and icons to flip flip: …

Details

Format
Framer code component. TypeScript source, README and licence included.
Designed for
Designers and studios building in English and Arabic, or any left-to-right and right-to-left language pair, in Framer.
Requires
Framer. React 18. Localization mode needs a plan with Localization; paired layers work on any plan.
Licence
Standard licence for your own projects and client work. No redistribution.
Availability
Available free

Companions

Cutting-mat grids, pulled out of line. Six studies in Ink, Forest and Cobalt, made for desktop, mobile and tablet.

$6

Download the free sample

Add a sort control, a live result count, a clear-all and a designed empty state to any Framer collection list, alongside Framer’s own filters.

Free

Switch a Framer site between two languages and writing directions, with correct lang and dir values, Arabic-Indic numerals, mirrored alignment and icons, and a remembered choice.

Free