Skip to content

I18n.dir method

I18n › dir

Unofficial

Returns the text direction for a language.

Signature:

dir(lng?: string | undefined): 'ltr' | 'rtl'

Parameters:

Parameter Type Description
lng? string | undefined Language code.

Returns: 'ltr' | 'rtl'The text direction.