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@bluebase/core@blueeast/bluerain-plugin-intljslib-nightlykahit-anohymson1.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-rr4abp-zero-template-rr6abp-zero-template-rr7abp-zero-template-rr8abp-zero-template-rralpabp-zero-template-rsabp-zero-template-rstabp-zero-template-rweaabp-zero-template-test-cardingabp-zero-template-test-christianabp-zero-template-test-mcabp-zero-template-test3abp-zero-template-test4abp-zero-carabp-zero-cardsabp-zero-jpacs04abp-zero-jpacs10abp-zero-jpacs11abp-zero-jpacs2abp-zero-laoxieabp-zero-manualabp-zero-manual-publishabp-zero-manual-templateabp-zero-sprinthubabp-zero-sprinthubtestingabp-zero-sprinthubtesting2abp-zero-templat-cardsabp-zero-templateabp-zero-template-aabp-zero-template-ababp-zero-template-abcabp-zero-template-asdabp-zero-template-babp-zero-template-bcabp-zero-template-bcdabp-zero-template-bnmabp-zero-template-cabp-zero-template-cardingabp-zero-template-ccmcabp-zero-template-chayabp-zero-template-ghiabp-zero-template-cardsabp-zero-template-ccmabp-zero-template-cdabp-zero-template-cdeabp-zero-template-chay1abp-zero-template-cmabp-zero-template-cmc
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

8 years ago

1.0.1

8 years ago

1.0.0

11 years ago