locizify 9.0.2 → 9.0.3
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/CHANGELOG.md +4 -0
- package/README.md +5 -5
- package/dist/umd/locizify.js +8 -8
- package/dist/umd/locizify.min.js +1 -1
- package/locizify.js +8 -8
- package/locizify.min.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Just drop the following line to your header to deliver your content in any langu
|
|
|
12
12
|
id="locizify"
|
|
13
13
|
projectid="[PROJECT_ID]"
|
|
14
14
|
apikey="[API_KEY]"
|
|
15
|
-
src="https://unpkg.com/locizify@^9.0.
|
|
15
|
+
src="https://unpkg.com/locizify@^9.0.3"
|
|
16
16
|
autopilot="true"
|
|
17
17
|
cdnType="standard"
|
|
18
18
|
></script>
|
|
@@ -22,7 +22,7 @@ Just drop the following line to your header to deliver your content in any langu
|
|
|
22
22
|
id="locizify"
|
|
23
23
|
projectid="[PROJECT_ID]"
|
|
24
24
|
apikey="[API_KEY]"
|
|
25
|
-
src="https://cdn.jsdelivr.net/npm/locizify@^9.0.
|
|
25
|
+
src="https://cdn.jsdelivr.net/npm/locizify@^9.0.3"
|
|
26
26
|
autopilot="true"
|
|
27
27
|
cdnType="standard"
|
|
28
28
|
></script>
|
|
@@ -71,7 +71,7 @@ Add the script to your page:
|
|
|
71
71
|
id="locizify"
|
|
72
72
|
projectid="[PROJECT_ID]"
|
|
73
73
|
apikey="[API_KEY]"
|
|
74
|
-
src="https://unpkg.com/locizify@^9.0.
|
|
74
|
+
src="https://unpkg.com/locizify@^9.0.3"
|
|
75
75
|
autopilot
|
|
76
76
|
cdnType="standard"
|
|
77
77
|
></script>
|
|
@@ -105,7 +105,7 @@ Add the script to your page:
|
|
|
105
105
|
apikey="[API_KEY]"
|
|
106
106
|
referencelng="[LNG]"
|
|
107
107
|
fallbacklng="[LNG]"
|
|
108
|
-
src="https://unpkg.com/locizify@^9.0.
|
|
108
|
+
src="https://unpkg.com/locizify@^9.0.3"
|
|
109
109
|
|
|
110
110
|
// all custom attributes can also be prefixed with data-
|
|
111
111
|
// data-projectid="[PROJECT_ID]"
|
|
@@ -136,7 +136,7 @@ Add the script to your page:
|
|
|
136
136
|
<!DOCTYPE html>
|
|
137
137
|
<html>
|
|
138
138
|
<head>
|
|
139
|
-
<script src="https://unpkg.com/locizify@^9.0.
|
|
139
|
+
<script src="https://unpkg.com/locizify@^9.0.3"></script>
|
|
140
140
|
<script>
|
|
141
141
|
locizify.init({
|
|
142
142
|
// required
|
package/dist/umd/locizify.js
CHANGED
|
@@ -8667,7 +8667,7 @@
|
|
|
8667
8667
|
}
|
|
8668
8668
|
function getElementNamespace(el) {
|
|
8669
8669
|
var found;
|
|
8670
|
-
var
|
|
8670
|
+
var _find = function find(ele) {
|
|
8671
8671
|
var opts = getAttribute$1(ele, 'i18next-options');
|
|
8672
8672
|
if (!opts) opts = getAttribute$1(ele, 'data-i18next-options');
|
|
8673
8673
|
if (!opts) opts = getAttribute$1(ele, 'i18n-options');
|
|
@@ -8683,9 +8683,9 @@
|
|
|
8683
8683
|
if (!found) found = getAttribute$1(ele, 'data-i18next-ns');
|
|
8684
8684
|
if (!found) found = getAttribute$1(ele, 'i18n-ns');
|
|
8685
8685
|
if (!found) found = getAttribute$1(ele, 'data-i18n-ns');
|
|
8686
|
-
if (!found && ele.parentElement)
|
|
8686
|
+
if (!found && ele.parentElement) _find(ele.parentElement);
|
|
8687
8687
|
};
|
|
8688
|
-
|
|
8688
|
+
_find(el);
|
|
8689
8689
|
return found;
|
|
8690
8690
|
}
|
|
8691
8691
|
function getQsParameterByName(name, url) {
|
|
@@ -9140,7 +9140,7 @@
|
|
|
9140
9140
|
var popup = document.createElement('div');
|
|
9141
9141
|
popup.setAttribute('id', popupId);
|
|
9142
9142
|
popup.classList.add('i18next-editor-popup');
|
|
9143
|
-
popup.style = "\n background-color: transparent;\n border: 1px solid rgba(200, 200, 200, 0.9);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n border-radius: 3px;\n --i18next-editor-popup-height: 200px;\n height: var(--i18next-editor-popup-height);\n min-height: 150px;\n min-width: 300px;\n --i18next-editor-popup-width: 400px;\n width: var(--i18next-editor-popup-width);\n max-height: 800px;\n max-width: 1000px;\n\n position: fixed;\n --i18next-editor-popup-position-top: calc(100vh - var(--i18next-editor-popup-height) - 10px);\n top: calc(100vh - var(--i18next-editor-popup-height) - 10px);\n --i18next-editor-popup-position-left: calc(100vw - var(--i18next-editor-popup-width) - 10px);\n left: calc(100vw - var(--i18next-editor-popup-width) - 10px);\n\n overflow: visible;\n z-index:
|
|
9143
|
+
popup.style = "\n background-color: transparent;\n border: 1px solid rgba(200, 200, 200, 0.9);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n border-radius: 3px;\n --i18next-editor-popup-height: 200px;\n height: var(--i18next-editor-popup-height);\n min-height: 150px;\n min-width: 300px;\n --i18next-editor-popup-width: 400px;\n width: var(--i18next-editor-popup-width);\n max-height: 800px;\n max-width: 1000px;\n\n position: fixed;\n --i18next-editor-popup-position-top: calc(100vh - var(--i18next-editor-popup-height) - 10px);\n top: calc(100vh - var(--i18next-editor-popup-height) - 10px);\n --i18next-editor-popup-position-left: calc(100vw - var(--i18next-editor-popup-width) - 10px);\n left: calc(100vw - var(--i18next-editor-popup-width) - 10px);\n\n overflow: visible;\n z-index: 100000;\n ";
|
|
9144
9144
|
popup.setAttribute('data-i18next-editor-element', 'true');
|
|
9145
9145
|
var header = document.createElement('div');
|
|
9146
9146
|
header.classList.add('i18next-editor-popup-header');
|
|
@@ -9359,7 +9359,7 @@
|
|
|
9359
9359
|
var rect = ele.getBoundingClientRect();
|
|
9360
9360
|
var box = document.createElement('div');
|
|
9361
9361
|
box.classList.add('i18next-editor-highlight');
|
|
9362
|
-
box.style = "position: absolute; z-index: 99999; pointer-events: none; top: ".concat(rect.top - 2 + window.scrollY, "px; left: ").concat(rect.left - 2 + window.scrollX, "px; height: ").concat(rect.height + 4, "px; width: ").concat(rect.width + 4, "px; border: 1px solid "
|
|
9362
|
+
box.style = "position: absolute; z-index: 99999; pointer-events: none; top: ".concat(rect.top - 2 + window.scrollY, "px; left: ").concat(rect.left - 2 + window.scrollX, "px; height: ").concat(rect.height + 4, "px; width: ").concat(rect.width + 4, "px; border: ").concat(borderColor === 'none' ? 'none' : "1px solid ".concat(borderColor), "; border-radius: 15px; ").concat(shadowColor ? "box-shadow: inset 1px 1px 5px rgba(255, 255, 255, 0.1), inset -1px -1px 5px rgba(61, 67, 69, 0.3), 0 0 20px 0 ".concat(shadowColor, ";") : '');
|
|
9363
9363
|
box.setAttribute('data-i18next-editor-element', 'true');
|
|
9364
9364
|
return box;
|
|
9365
9365
|
}
|
|
@@ -10765,7 +10765,7 @@
|
|
|
10765
10765
|
function highlight(item, node, keys) {
|
|
10766
10766
|
var rectEle = getOptimizedBoundingRectEle(node);
|
|
10767
10767
|
if (!item.highlightBox) {
|
|
10768
|
-
var box = HighlightBox(rectEle,
|
|
10768
|
+
var box = HighlightBox(rectEle, 'none', 'rgba(0,0,0,0.1)');
|
|
10769
10769
|
document.body.appendChild(box);
|
|
10770
10770
|
item.highlightBox = box;
|
|
10771
10771
|
}
|
|
@@ -10832,7 +10832,7 @@
|
|
|
10832
10832
|
var id = item.id;
|
|
10833
10833
|
var rectEle = getOptimizedBoundingRectEle(node);
|
|
10834
10834
|
if (!item.highlightBox) {
|
|
10835
|
-
var box = HighlightBox(rectEle,
|
|
10835
|
+
var box = HighlightBox(rectEle, 'none', colors.gray);
|
|
10836
10836
|
document.body.appendChild(box);
|
|
10837
10837
|
item.highlightBox = box;
|
|
10838
10838
|
}
|
|
@@ -11261,7 +11261,7 @@
|
|
|
11261
11261
|
var popups = document.getElementsByClassName('i18next-editor-popup');
|
|
11262
11262
|
var elmnt = null;
|
|
11263
11263
|
var overlay = null;
|
|
11264
|
-
var currentZIndex =
|
|
11264
|
+
var currentZIndex = 100000;
|
|
11265
11265
|
for (var i = 0; i < popups.length; i++) {
|
|
11266
11266
|
var popup = popups[i];
|
|
11267
11267
|
var header = getHeader(popup);
|