1.1.2 • Published 2 years ago

rtl-detect v1.1.2

Weekly downloads
44,978
License
BSD-3-Clause
Repository
github
Last release
2 years ago

rtl-detect

Build Status

This library will help you to detect if the locale is right-to-left language or not.

Usage

require rtl-detect lib

var rtlDetect = require('rtl-detect');

isRtlLang

This function will check if the locale is right-to-left language or not.

Examples:

var isRtl = rtlDetect.isRtlLang('ar-JO');
// isRtl will be true
var isRtl = rtlDetect.isRtlLang('ar_JO');
// isRtl will be true
var isRtl = rtlDetect.isRtlLang('ar');
// isRtl will be true
var isRtl = rtlDetect.isRtlLang('en-US');
// isRtl will be false

getLangDir

This function will get language direction for the locale.

Examples:

var langDir = rtlDetect.getLangDir('ar-JO');
// langDir will be 'rtl'
var langDir = rtlDetect.getLangDir('ar_JO');
// langDir will be 'rtl'
var langDir = rtlDetect.getLangDir('ar');
// langDir will be 'rtl'
var langDir = rtlDetect.getLangDir('en-US');
// langDir will be 'ltr'

Copyright 2015, Yahoo! Inc.

brael-solarenginestongdai-bggabp-zero-templates-gabp-zero-template-gmanualabp-zero-templatabp-zero-templat-gabp-zero-template-gcointervu@infinitebrahmanuniverse/nolb-rt@everything-registry/sub-chunk-2689sportotekavalmiri@docusaurus/core@creaditor/cdtr-blog@contentstack/venus-components@bluebase/core@blueeast/bluerain-plugin-intljslib-nightlykahit-anosprintteksprinttek-cardssprinttek-dev-templatessprinttek-dev-templates-cardssprinttek-dev-templates-redsprinttek-redsprinttek-templatessprinttek-templates-1sprinttek-templates-cadssprinttek-templates-cardingsprinttek-templates-cardssprinttek-templates-jursprinttek-templates-namsprinttek-templates-nambriasprinttek-templates-redsprinttek-templates-yowsprinttek-templates0cardssprinttek-templatesssprinttek-templatessxsprinttek-templatesx1sprinttektestsprinttektest1ublion-oauthtimothy.cruztimothy.cruz638timothy.cruz639@aipmorg/chat@amir-ghostrider-dev/webpack-config@bentwnghk/chatzckj_yxtvish-for-sittertruedo-hazardzerozm-zzz@govey1nw/lobehub-chat@lobehub/chat@robertwebbmodular/coremypluginlolreact-native-domrn-dom-renderersaukaccountancysaukaccountantsnext-launchreact-shop-next-intlsmallbook-webapphymson1.0hike-applookemanual-publish-lancelance-kpi-boxabp-antech-jpacsabp-zero-templates-localabp-zero-templates-mcabp-zero-templates-ralphabp-zero-templates-redabp-zero-templatexabp-zerojpacs360abp-zerojpacs361abpjpacs348abp-jpacs394abp-jpacs395abp-jpacs478abp-jpacs520abp-zero-template-qweralabp-zero-template-qwertyabp-zero-template-ralph1abp-zero-template-ralph3abp-zero-template-ralphrabp-zero-template-ralphraabp-zero-template-raraabp-zero-template-redabp-zero-template-redsabp-zero-template-reeseabp-zero-template-reesesabp-zero-template-reesesesabp-zero-template-resaabp-zero-template-resaaabp-zero-template-resaaaabp-zero-template-resaaaaabp-zero-template-rr2abp-zero-template-rr3abp-zero-template-rr4
1.1.1

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

10 years ago