This commit is contained in:
2024-03-22 03:47:51 +05:30
parent 8bcf3d211e
commit 89819f6fe2
28440 changed files with 3211033 additions and 2 deletions

65
node_modules/rtl-detect/README.md generated vendored Normal file
View File

@@ -0,0 +1,65 @@
# rtl-detect
![Build Status](https://github.com/shadiabuhilal/rtl-detect/actions/workflows/push-workflows.yml/badge.svg)
This library will help you to detect if the locale is right-to-left language or not.
## Usage
### require rtl-detect lib
```js
var rtlDetect = require('rtl-detect');
```
### isRtlLang
This function will check if the locale is right-to-left language or not.
Examples:
```js
var isRtl = rtlDetect.isRtlLang('ar-JO');
// isRtl will be true
```
```js
var isRtl = rtlDetect.isRtlLang('ar_JO');
// isRtl will be true
```
```js
var isRtl = rtlDetect.isRtlLang('ar');
// isRtl will be true
```
```js
var isRtl = rtlDetect.isRtlLang('en-US');
// isRtl will be false
```
### getLangDir
This function will get language direction for the locale.
Examples:
```js
var langDir = rtlDetect.getLangDir('ar-JO');
// langDir will be 'rtl'
```
```js
var langDir = rtlDetect.getLangDir('ar_JO');
// langDir will be 'rtl'
```
```js
var langDir = rtlDetect.getLangDir('ar');
// langDir will be 'rtl'
```
```js
var langDir = rtlDetect.getLangDir('en-US');
// langDir will be 'ltr'
```
Copyright 2015, Yahoo! Inc.