locizify 6.0.7 → 6.0.8
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 +11 -2
- package/dist/umd/locizify.js +1 -1
- package/dist/umd/locizify.min.js +1 -1
- package/locizify.js +1 -1
- package/locizify.min.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
[](https://travis-ci.org/locize/locizify)
|
|
2
1
|
[](https://coveralls.io/github/locize/locizify)
|
|
3
2
|
[](https://www.npmjs.com/package/locizify)
|
|
4
3
|
|
|
@@ -13,9 +12,19 @@ Just drop the following line to your header to deliver your content in any langu
|
|
|
13
12
|
id="locizify"
|
|
14
13
|
projectid="[PROJECT_ID]"
|
|
15
14
|
apikey="[API_KEY]"
|
|
16
|
-
src="https://unpkg.com/locizify@^
|
|
15
|
+
src="https://unpkg.com/locizify@^6.0.7"
|
|
17
16
|
autopilot
|
|
18
17
|
></script>
|
|
18
|
+
|
|
19
|
+
<!-- or -->
|
|
20
|
+
<script
|
|
21
|
+
id="locizify"
|
|
22
|
+
projectid="[PROJECT_ID]"
|
|
23
|
+
apikey="[API_KEY]"
|
|
24
|
+
src="https://cdn.jsdelivr.net/npm/locizify@^6.0.7"
|
|
25
|
+
autopilot
|
|
26
|
+
></script>
|
|
27
|
+
|
|
19
28
|
```
|
|
20
29
|
|
|
21
30
|
Checkout this [video](https://youtu.be/f0ukRI0LMfo?t=180) to see locizify in action.
|
package/dist/umd/locizify.js
CHANGED
|
@@ -12933,7 +12933,7 @@
|
|
|
12933
12933
|
});
|
|
12934
12934
|
},
|
|
12935
12935
|
getLng: function getLng() {
|
|
12936
|
-
return i18n.languages[0];
|
|
12936
|
+
return i18n.resolvedLanguage || i18n.languages[0];
|
|
12937
12937
|
},
|
|
12938
12938
|
getSourceLng: function getSourceLng() {
|
|
12939
12939
|
var fallback = i18n.options.fallbackLng;
|