> For the complete documentation index, see [llms.txt](https://docs.navigaglobal.com/dashboard-plugin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.navigaglobal.com/dashboard-plugin/api-and-gui/api/gettextdirection.md).

# getTextDirection

getTextDirection is a helper function will return the css rule for a text value depending depends on the language of the text value

## How to use

```javascript
import { Plugin } from'@root'

const englishText = 'Hello'
const arabicText = 'مرحبا'

Plugin.getTextDirection(englishText) // returns 'ltr'
Plugin.getTextDirection(arabicText) // returns 'rtl'
```
