RTL toggle

rtl-toggle detects and toggles the language direction ('rtl'/'ltr') of a site.

What is RTL toggle?

RTL toggle is a Chrome extension developed by aris.magrin, and its main feature is "rtl-toggle detects and toggles the language direction ('rtl'/'ltr') of a site.".

Extension Screenshots

screenshot
screenshot
screenshot

Download RTL toggle Extension CRX File

Download RTL toggle extension files in crx format, manually install Chrome extensions in the browser, or share the crx files with friends to easily install Chrome extensions.

Extension Usage Instructions

                        When you are developing for websites and applications that support languages that are written from right to left it's really helpful to visualize and toggle the language direction in the browser independently from the actual language that is being used.

HOW IT WORKS

The extensions does two things: Detects and toggles the direction of the website's language.

Detection:
When a new tab is loaded a script is checking the dir attribute of the  tag element. If the attribute is set to 'rtl', the extension's badge text is also set to "RTL" indicating that the current website uses a language that is written from right to left.

Toggling:
When the user clicks the extension's icon, a script toggles (or adds it if not set) the value of dir attribute of the  tag to one of the two values 'rtl'/'ltr'.                    

Extension Basic Information

Name RTL toggle RTL toggle
ID diimdfmlegodnjbcgajllidffehegdbc
Official URL https://chromewebstore.google.com/detail/rtl-toggle/diimdfmlegodnjbcgajllidffehegdbc
Description rtl-toggle detects and toggles the language direction ('rtl'/'ltr') of a site.
File Size 8.65 KB
Installation Count 1,832
Current Version 1.0.1
Last Updated 2022-06-21
Publish Date 2022-06-13
Rating 4.57/5 Total 14 Ratings
Developer aris.magrin
Email [email protected]
Payment Type free
Extension Website https://github.com/arismag/rtl-toggle
Help Page URL https://github.com/arismag/rtl-toggle
Supported Languages en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "name": "RTL toggle",
    "description": "rtl-toggle detects and toggles the language direction ('rtl'\/'ltr') of a site.",
    "version": "1.0.1",
    "manifest_version": 3,
    "background": {
        "service_worker": "background.js"
    },
    "permissions": [
        "activeTab",
        "scripting"
    ],
    "action": {
        "default_title": "Toggle language direction"
    },
    "content_scripts": [
        {
            "matches": [
                "http:\/\/*\/*",
                "https:\/\/*\/*"
            ],
            "js": [
                "rtl-init-check.js"
            ]
        }
    ],
    "icons": {
        "32": "images\/rtl-toggle.png",
        "48": "images\/rtl-toggle.png",
        "128": "images\/rtl-toggle.png"
    }
}