Skip to main content
Version: v3+

getRtlLayout()

Start from API_LEVEL 2.0 . Please refer to API_LEVEL.

Query whether the current system language setting is RTL language. Setting the language to Hebrew and Arabic will return true.

Type

() => result

result: boolean

DescriptionType
Query results, true indicates RTL language, false indicates non-RTL languageboolean

Code example

import { getRtlLayout } from '@zos/ui'

const result = getRtlLayout()
console.log(result)