mol_view_tree2_lib 1.0.216 → 1.0.217
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node.deps.json +1 -1
- package/node.js +3 -2
- package/node.js.map +1 -1
- package/node.mjs +3 -2
- package/node.test.js +3 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +3 -2
- package/web.js.map +1 -1
- package/web.mjs +3 -2
package/node.mjs
CHANGED
|
@@ -5537,13 +5537,14 @@ var $;
|
|
|
5537
5537
|
}
|
|
5538
5538
|
static direction() {
|
|
5539
5539
|
const lang = this.lang();
|
|
5540
|
+
let direction;
|
|
5540
5541
|
try {
|
|
5541
|
-
|
|
5542
|
+
direction = new Intl.Locale(lang).getTextInfo().direction;
|
|
5542
5543
|
}
|
|
5543
5544
|
catch (e) {
|
|
5544
5545
|
$mol_fail_log(e);
|
|
5545
|
-
return this.langs_rtl().includes(lang) ? 'rtl' : 'ltr';
|
|
5546
5546
|
}
|
|
5547
|
+
return direction ?? (this.langs_rtl().includes(lang) ? 'rtl' : 'ltr');
|
|
5547
5548
|
}
|
|
5548
5549
|
static source(lang) {
|
|
5549
5550
|
return JSON.parse(this.$.$mol_file.relative(`web.locale=${lang}.json`).text().toString());
|
package/node.test.js
CHANGED
|
@@ -5528,13 +5528,14 @@ var $;
|
|
|
5528
5528
|
}
|
|
5529
5529
|
static direction() {
|
|
5530
5530
|
const lang = this.lang();
|
|
5531
|
+
let direction;
|
|
5531
5532
|
try {
|
|
5532
|
-
|
|
5533
|
+
direction = new Intl.Locale(lang).getTextInfo().direction;
|
|
5533
5534
|
}
|
|
5534
5535
|
catch (e) {
|
|
5535
5536
|
$mol_fail_log(e);
|
|
5536
|
-
return this.langs_rtl().includes(lang) ? 'rtl' : 'ltr';
|
|
5537
5537
|
}
|
|
5538
|
+
return direction ?? (this.langs_rtl().includes(lang) ? 'rtl' : 'ltr');
|
|
5538
5539
|
}
|
|
5539
5540
|
static source(lang) {
|
|
5540
5541
|
return JSON.parse(this.$.$mol_file.relative(`web.locale=${lang}.json`).text().toString());
|