What is rlt-checker ?
To check if the language uses right to left text writing system.
Installation
npm i rlt-checker
or
yarn add rlt-checker
Then...
import { isRTL } from 'rlt-checker';
console.log(isRTL('ar')); //true
Options
rlt-checker contains 4 functions:
-
isRTL(langCode:string)
- langCode is required. listRTLLangCodes()
listRTLLanguages()
listRTLLangCodesAndCountries()