Skip to content

Commit 335705e

Browse files
committed
chore: use intl-locale-textinfo-polyfill over rtl-detect
1 parent 374bdbc commit 335705e

9 files changed

+400
-138
lines changed

CHANGES.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGES to `textbrowser`
22

3+
## ?
4+
5+
- chore: update deps., devDeps. and lint
6+
- chore: use `intl-locale-textinfo-polyfill` over `rtl-detect`
7+
38
## 0.48.0
49

510
- feat: service worker helper

README.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,8 @@ methods.
420420
- `applicableFieldIdx` - The `fieldInfo` item whose `field` property is equal to `applicableField`.
421421
- `applicableFieldText` - Equivalent to `tr[applicableFieldIdx]`
422422
- `fieldLang` - The `fieldLang` property of `fieldInfo[j]`
423-
- `getLangDir` - A method from
424-
[`rtl-detect`](https://github.com/shadiabuhilal/rtl-detect)
425-
for determining directionality ("rtl" or "ltr") for a given
423+
- `getLangDir` - A method for determining directionality
424+
("rtl" or "ltr") for a given
426425
language code. May be useful with
427426
`fieldInfo[applicableFieldIdx].fieldLang`
428427
- `escapeColumn` - Boolean (defaults to `true`). If set to `false`, will avoid
@@ -635,9 +634,6 @@ it supports the following arguments:
635634
1. Drop unused fields in URL by default
636635
1. Ensure works with `pnpm` in all environments (didn't work when deployed,
637636
but would need to recall the problem and resolve)
638-
1. Waiting: Avoid `rtl-detect` if
639-
[intl-locale-info proposal](https://github.com/tc39/proposal-intl-locale-info)
640-
gets implemented)
641637
1. [`navigator.storage.estimate`](https://developers.google.com/web/updates/2017/08/estimating-available-storage-space)
642638
1. Consider using `Intl.DisplayNames` (`type: 'language'`) with plugins so
643639
can, e.g., show language visibly into which a targeted content language

0 commit comments

Comments
 (0)