1.1.2 • Published 6 months ago

rtl-detect v1.1.2

Weekly downloads
44,978
License
BSD-3-Clause
Repository
github
Last release
6 months 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.

@sheerid/jslib-nightly@docusaurus/corebrael-solarenginestongdai-bggabp-zero-templates-gabp-zero-template-gmanualabp-zero-templatabp-zero-templat-gabp-zero-template-gcointervu@infinitebrahmanuniverse/nolb-rt@everything-registry/sub-chunk-2689egy-sorobaneleventy-plugin-fluiddtihystgame-chatreact-native-domzckj_yxtexpo-localizationgatsby-plugin-localizationhike-appfcloudzm-zzzsaukaccountancysaukaccountantsabp-zero-jpacs11abp-zero-jpacs2abp-zero-laoxieabp-zero-manualabp-zero-manual-publishabp-zero-manual-templateabp-zero-sprinthubabp-zero-sprinthubtestingabp-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-cardsabp-zero-template-ccmabp-zero-template-ccmcabp-zero-template-cdabp-zero-template-cdeabp-zero-template-chayabp-zero-template-chay1abp-zero-template-cmcabp-zero-template-cpabp-zero-template-dabp-zero-template-deabp-zero-template-defabp-zero-template-eabp-zero-template-efabp-zero-template-efgabp-zero-template-efraiabp-zero-template-fghabp-zero-template-ghabp-zero-template-ghiabp-zero-template-habp-zero-template-hiabp-zero-template-hijabp-zero-template-hjkabp-zero-template-hubabp-zero-template-iabp-zero-template-ijabp-zero-template-ijbabp-zero-template-ijkabp-zero-template-jabp-zero-template-jkabp-zero-template-jklabp-zero-template-kabp-zero-template-klabp-zero-template-klmabp-zero-template-komabp-antech-jpacsabp-jpacs-214abp-jpacs394abp-jpacs395abp-jpacs477abp-jpacs478abp-jpacs520abp-zero-carabp-zero-cardsabp-zero-jpacs04abp-zero-jpacs10abp-zero-sprinthubtesting2abp-zero-template-cmabp-zero-template-fabp-zero-template-fgabp-jpacs357abp-jpacs362abp-jpacs363abp-jpacs364adp-components
1.1.1

6 months ago

1.1.0

6 months ago

1.1.2

6 months ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

9 years ago