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 CHANGED
@@ -1,3 +1,7 @@
1
+ ### 6.0.8
2
+
3
+ - update locize plugin
4
+
1
5
  ### 6.0.7
2
6
 
3
7
  - update locize plugin
package/README.md CHANGED
@@ -1,4 +1,3 @@
1
- [![Travis](https://img.shields.io/travis/locize/locizify/master.svg?style=flat-square)](https://travis-ci.org/locize/locizify)
2
1
  [![Coveralls](https://img.shields.io/coveralls/locize/locizify/master.svg?style=flat-square)](https://coveralls.io/github/locize/locizify)
3
2
  [![npm version](https://img.shields.io/npm/v/locizify.svg?style=flat-square)](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@^5.3.1"
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.
@@ -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;