mol_dump_lib 0.0.1043 → 0.0.1045
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/web.js
CHANGED
|
@@ -6787,13 +6787,14 @@ var $;
|
|
|
6787
6787
|
}
|
|
6788
6788
|
static direction() {
|
|
6789
6789
|
const lang = this.lang();
|
|
6790
|
+
let direction;
|
|
6790
6791
|
try {
|
|
6791
|
-
|
|
6792
|
+
direction = new Intl.Locale(lang).getTextInfo().direction;
|
|
6792
6793
|
}
|
|
6793
6794
|
catch (e) {
|
|
6794
6795
|
$mol_fail_log(e);
|
|
6795
|
-
return this.langs_rtl().includes(lang) ? 'rtl' : 'ltr';
|
|
6796
6796
|
}
|
|
6797
|
+
return direction ?? (this.langs_rtl().includes(lang) ? 'rtl' : 'ltr');
|
|
6797
6798
|
}
|
|
6798
6799
|
static source(lang) {
|
|
6799
6800
|
return JSON.parse(this.$.$mol_file.relative(`web.locale=${lang}.json`).text().toString());
|