Skip to main content

Hey everyone—

I’m working on a Figma plugin that helps with Arabic and English interfaces. One issue I keep running into: I can’t figure out how to detect or set the text direction (like right-to-left for Arabic).

 

The plugin API doesn’t seem to have anything like textDirection, and I’ve tried checking the characters in the text manually, but it’s messy—especially when the text mixes Arabic and English, or has numbers and punctuation.

 

I just want to know if there's any way, even a workaround, to know whether a text node is RTL or LTR, and ideally control it from the plugin.

 

Has anyone dealt with this before?

 

Thanks in

advance!

Be the first to reply!

Reply