locizify 7.0.3 → 8.0.0
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 +9 -0
- package/README.md +8 -5
- package/dist/umd/locizify.js +4 -1
- package/dist/umd/locizify.min.js +2 -2
- package/locizify.js +4 -1
- package/locizify.min.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
### 8.0.0
|
|
2
|
+
|
|
3
|
+
- update i18next-locize-backend
|
|
4
|
+
- log/error is shown if cdnType is not defined, because of changing default to 'standard' instead of 'pro'
|
|
5
|
+
|
|
6
|
+
### 7.0.4
|
|
7
|
+
|
|
8
|
+
- update i18next-locize-backend
|
|
9
|
+
|
|
1
10
|
### 7.0.3
|
|
2
11
|
|
|
3
12
|
- update i18next-locize-backend
|
package/README.md
CHANGED
|
@@ -12,8 +12,9 @@ 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@^
|
|
15
|
+
src="https://unpkg.com/locizify@^7.0.3"
|
|
16
16
|
autopilot="true"
|
|
17
|
+
cdnType="standard"
|
|
17
18
|
></script>
|
|
18
19
|
|
|
19
20
|
<!-- or -->
|
|
@@ -21,8 +22,9 @@ Just drop the following line to your header to deliver your content in any langu
|
|
|
21
22
|
id="locizify"
|
|
22
23
|
projectid="[PROJECT_ID]"
|
|
23
24
|
apikey="[API_KEY]"
|
|
24
|
-
src="https://cdn.jsdelivr.net/npm/locizify@^
|
|
25
|
+
src="https://cdn.jsdelivr.net/npm/locizify@^7.0.3"
|
|
25
26
|
autopilot="true"
|
|
27
|
+
cdnType="standard"
|
|
26
28
|
></script>
|
|
27
29
|
|
|
28
30
|
```
|
|
@@ -69,8 +71,9 @@ Add the script to your page:
|
|
|
69
71
|
id="locizify"
|
|
70
72
|
projectid="[PROJECT_ID]"
|
|
71
73
|
apikey="[API_KEY]"
|
|
72
|
-
src="https://unpkg.com/locizify@^
|
|
74
|
+
src="https://unpkg.com/locizify@^7.0.3"
|
|
73
75
|
autopilot
|
|
76
|
+
cdnType="standard"
|
|
74
77
|
></script>
|
|
75
78
|
</head>
|
|
76
79
|
...
|
|
@@ -102,7 +105,7 @@ Add the script to your page:
|
|
|
102
105
|
apikey="[API_KEY]"
|
|
103
106
|
referencelng="[LNG]"
|
|
104
107
|
fallbacklng="[LNG]"
|
|
105
|
-
src="https://unpkg.com/locizify@^
|
|
108
|
+
src="https://unpkg.com/locizify@^7.0.3"
|
|
106
109
|
|
|
107
110
|
// all custom attributes can also be prefixed with data-
|
|
108
111
|
// data-projectid="[PROJECT_ID]"
|
|
@@ -133,7 +136,7 @@ Add the script to your page:
|
|
|
133
136
|
<!DOCTYPE html>
|
|
134
137
|
<html>
|
|
135
138
|
<head>
|
|
136
|
-
<script src="https://unpkg.com/locizify@^
|
|
139
|
+
<script src="https://unpkg.com/locizify@^7.0.3"></script>
|
|
137
140
|
<script>
|
|
138
141
|
locizify.init({
|
|
139
142
|
// required
|
package/dist/umd/locizify.js
CHANGED
|
@@ -7559,10 +7559,13 @@
|
|
|
7559
7559
|
Object.keys(apiPaths).forEach(function (ap) {
|
|
7560
7560
|
if (!orgPassedOptions[ap]) _this.options[ap] = apiPaths[ap];
|
|
7561
7561
|
});
|
|
7562
|
+
if (!orgPassedOptions.cdnType) {
|
|
7563
|
+
console.error('[i18next-locize-backend] In the next major version, the default \'cdnType\' will be \'standard\'. Please set \'cdnType\' explicitly in your options to avoid missing translations.');
|
|
7564
|
+
}
|
|
7562
7565
|
if (this.options.pull) {
|
|
7563
7566
|
console.warn('The pull API was removed use "private: true" option instead: https://www.locize.com/docs/api#fetch-private-namespace-resources');
|
|
7564
7567
|
}
|
|
7565
|
-
if (allOptions.debug && orgPassedOptions.noCache === undefined && this.options.cdnType
|
|
7568
|
+
if (allOptions.debug && orgPassedOptions.noCache === undefined && this.options.cdnType === 'standard') {
|
|
7566
7569
|
this.options.noCache = true;
|
|
7567
7570
|
}
|
|
7568
7571
|
if (this.options.noCache && this.options.cdnType !== 'standard') {
|