@cloudtower/parrot 0.25.16 → 0.25.18

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/dist/esm/index.js CHANGED
@@ -309,7 +309,9 @@ const defaultOptions = {
309
309
  };
310
310
  const parrotI18n = i18next.createInstance(defaultOptions);
311
311
  const initParrotI18n = (options, callback) => {
312
- parrotI18n.init(merge(defaultOptions, options), callback);
312
+ if (!parrotI18n.isInitialized) {
313
+ parrotI18n.init(merge(defaultOptions, options), callback);
314
+ }
313
315
  };
314
316
 
315
317
  export { initParrotI18n, locales, parrotI18n };
@@ -6157,7 +6157,7 @@ var drawChart = (function (exports) {
6157
6157
  </script>
6158
6158
  <script>
6159
6159
  /*<!--*/
6160
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"name":"locales","children":[{"name":"en-US","children":[{"uid":"1d13-25","name":"common.json"},{"uid":"1d13-27","name":"components.json"},{"uid":"1d13-29","name":"metric.json"},{"uid":"1d13-31","name":"index.ts"}]},{"name":"zh-CN","children":[{"uid":"1d13-33","name":"common.json"},{"uid":"1d13-35","name":"components.json"},{"uid":"1d13-37","name":"metric.json"},{"uid":"1d13-39","name":"index.ts"}]},{"uid":"1d13-41","name":"index.ts"}]},{"uid":"1d13-43","name":"parrotI18n.ts"},{"uid":"1d13-45","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"1d13-25":{"renderedLength":1829,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-24"},"1d13-27":{"renderedLength":1426,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-26"},"1d13-29":{"renderedLength":165,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-28"},"1d13-31":{"renderedLength":88,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-30"},"1d13-33":{"renderedLength":1694,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-32"},"1d13-35":{"renderedLength":1587,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-34"},"1d13-37":{"renderedLength":157,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-36"},"1d13-39":{"renderedLength":52,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-38"},"1d13-41":{"renderedLength":59,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-40"},"1d13-43":{"renderedLength":1194,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-42"},"1d13-45":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-44"}},"nodeMetas":{"1d13-24":{"id":"/src/locales/en-US/common.json","moduleParts":{"index.js":"1d13-25"},"imported":[],"importedBy":[{"uid":"1d13-30"}]},"1d13-26":{"id":"/src/locales/en-US/components.json","moduleParts":{"index.js":"1d13-27"},"imported":[],"importedBy":[{"uid":"1d13-30"}]},"1d13-28":{"id":"/src/locales/en-US/metric.json","moduleParts":{"index.js":"1d13-29"},"imported":[],"importedBy":[{"uid":"1d13-30"}]},"1d13-30":{"id":"/src/locales/en-US/index.ts","moduleParts":{"index.js":"1d13-31"},"imported":[{"uid":"1d13-24"},{"uid":"1d13-26"},{"uid":"1d13-28"}],"importedBy":[{"uid":"1d13-40"}]},"1d13-32":{"id":"/src/locales/zh-CN/common.json","moduleParts":{"index.js":"1d13-33"},"imported":[],"importedBy":[{"uid":"1d13-38"}]},"1d13-34":{"id":"/src/locales/zh-CN/components.json","moduleParts":{"index.js":"1d13-35"},"imported":[],"importedBy":[{"uid":"1d13-38"}]},"1d13-36":{"id":"/src/locales/zh-CN/metric.json","moduleParts":{"index.js":"1d13-37"},"imported":[],"importedBy":[{"uid":"1d13-38"}]},"1d13-38":{"id":"/src/locales/zh-CN/index.ts","moduleParts":{"index.js":"1d13-39"},"imported":[{"uid":"1d13-32"},{"uid":"1d13-34"},{"uid":"1d13-36"}],"importedBy":[{"uid":"1d13-40"}]},"1d13-40":{"id":"/src/locales/index.ts","moduleParts":{"index.js":"1d13-41"},"imported":[{"uid":"1d13-30"},{"uid":"1d13-38"}],"importedBy":[{"uid":"1d13-44"},{"uid":"1d13-42"}]},"1d13-42":{"id":"/src/parrotI18n.ts","moduleParts":{"index.js":"1d13-43"},"imported":[{"uid":"1d13-46"},{"uid":"1d13-47"},{"uid":"1d13-40"}],"importedBy":[{"uid":"1d13-44"}]},"1d13-44":{"id":"/src/index.ts","moduleParts":{"index.js":"1d13-45"},"imported":[{"uid":"1d13-40"},{"uid":"1d13-42"}],"importedBy":[],"isEntry":true},"1d13-46":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"1d13-42"}],"isExternal":true},"1d13-47":{"id":"lodash.merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"1d13-42"}],"isExternal":true}},"env":{"rollup":"3.15.0"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
6160
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"name":"locales","children":[{"name":"en-US","children":[{"uid":"bae8-25","name":"common.json"},{"uid":"bae8-27","name":"components.json"},{"uid":"bae8-29","name":"metric.json"},{"uid":"bae8-31","name":"index.ts"}]},{"name":"zh-CN","children":[{"uid":"bae8-33","name":"common.json"},{"uid":"bae8-35","name":"components.json"},{"uid":"bae8-37","name":"metric.json"},{"uid":"bae8-39","name":"index.ts"}]},{"uid":"bae8-41","name":"index.ts"}]},{"uid":"bae8-43","name":"parrotI18n.ts"},{"uid":"bae8-45","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"bae8-25":{"renderedLength":1829,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-24"},"bae8-27":{"renderedLength":1426,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-26"},"bae8-29":{"renderedLength":165,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-28"},"bae8-31":{"renderedLength":88,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-30"},"bae8-33":{"renderedLength":1694,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-32"},"bae8-35":{"renderedLength":1587,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-34"},"bae8-37":{"renderedLength":157,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-36"},"bae8-39":{"renderedLength":52,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-38"},"bae8-41":{"renderedLength":59,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-40"},"bae8-43":{"renderedLength":1235,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-42"},"bae8-45":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-44"}},"nodeMetas":{"bae8-24":{"id":"/src/locales/en-US/common.json","moduleParts":{"index.js":"bae8-25"},"imported":[],"importedBy":[{"uid":"bae8-30"}]},"bae8-26":{"id":"/src/locales/en-US/components.json","moduleParts":{"index.js":"bae8-27"},"imported":[],"importedBy":[{"uid":"bae8-30"}]},"bae8-28":{"id":"/src/locales/en-US/metric.json","moduleParts":{"index.js":"bae8-29"},"imported":[],"importedBy":[{"uid":"bae8-30"}]},"bae8-30":{"id":"/src/locales/en-US/index.ts","moduleParts":{"index.js":"bae8-31"},"imported":[{"uid":"bae8-24"},{"uid":"bae8-26"},{"uid":"bae8-28"}],"importedBy":[{"uid":"bae8-40"}]},"bae8-32":{"id":"/src/locales/zh-CN/common.json","moduleParts":{"index.js":"bae8-33"},"imported":[],"importedBy":[{"uid":"bae8-38"}]},"bae8-34":{"id":"/src/locales/zh-CN/components.json","moduleParts":{"index.js":"bae8-35"},"imported":[],"importedBy":[{"uid":"bae8-38"}]},"bae8-36":{"id":"/src/locales/zh-CN/metric.json","moduleParts":{"index.js":"bae8-37"},"imported":[],"importedBy":[{"uid":"bae8-38"}]},"bae8-38":{"id":"/src/locales/zh-CN/index.ts","moduleParts":{"index.js":"bae8-39"},"imported":[{"uid":"bae8-32"},{"uid":"bae8-34"},{"uid":"bae8-36"}],"importedBy":[{"uid":"bae8-40"}]},"bae8-40":{"id":"/src/locales/index.ts","moduleParts":{"index.js":"bae8-41"},"imported":[{"uid":"bae8-30"},{"uid":"bae8-38"}],"importedBy":[{"uid":"bae8-44"},{"uid":"bae8-42"}]},"bae8-42":{"id":"/src/parrotI18n.ts","moduleParts":{"index.js":"bae8-43"},"imported":[{"uid":"bae8-46"},{"uid":"bae8-47"},{"uid":"bae8-40"}],"importedBy":[{"uid":"bae8-44"}]},"bae8-44":{"id":"/src/index.ts","moduleParts":{"index.js":"bae8-45"},"imported":[{"uid":"bae8-40"},{"uid":"bae8-42"}],"importedBy":[],"isEntry":true},"bae8-46":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"bae8-42"}],"isExternal":true},"bae8-47":{"id":"lodash.merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"bae8-42"}],"isExternal":true}},"env":{"rollup":"3.15.0"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
6161
6161
 
6162
6162
  const run = () => {
6163
6163
  const width = window.innerWidth;
package/dist/umd/index.js CHANGED
@@ -312,7 +312,9 @@
312
312
  };
313
313
  const parrotI18n = i18next.createInstance(defaultOptions);
314
314
  const initParrotI18n = (options, callback) => {
315
- parrotI18n.init(merge(defaultOptions, options), callback);
315
+ if (!parrotI18n.isInitialized) {
316
+ parrotI18n.init(merge(defaultOptions, options), callback);
317
+ }
316
318
  };
317
319
 
318
320
  exports.initParrotI18n = initParrotI18n;
@@ -6157,7 +6157,7 @@ var drawChart = (function (exports) {
6157
6157
  </script>
6158
6158
  <script>
6159
6159
  /*<!--*/
6160
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"name":"locales","children":[{"name":"en-US","children":[{"uid":"1d13-1","name":"common.json"},{"uid":"1d13-3","name":"components.json"},{"uid":"1d13-5","name":"metric.json"},{"uid":"1d13-7","name":"index.ts"}]},{"name":"zh-CN","children":[{"uid":"1d13-9","name":"common.json"},{"uid":"1d13-11","name":"components.json"},{"uid":"1d13-13","name":"metric.json"},{"uid":"1d13-15","name":"index.ts"}]},{"uid":"1d13-17","name":"index.ts"}]},{"uid":"1d13-19","name":"parrotI18n.ts"},{"uid":"1d13-21","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"1d13-1":{"renderedLength":1973,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-0"},"1d13-3":{"renderedLength":1504,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-2"},"1d13-5":{"renderedLength":181,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-4"},"1d13-7":{"renderedLength":98,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-6"},"1d13-9":{"renderedLength":1838,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-8"},"1d13-11":{"renderedLength":1685,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-10"},"1d13-13":{"renderedLength":173,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-12"},"1d13-15":{"renderedLength":62,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-14"},"1d13-17":{"renderedLength":67,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-16"},"1d13-19":{"renderedLength":1272,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-18"},"1d13-21":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"1d13-20"}},"nodeMetas":{"1d13-0":{"id":"/src/locales/en-US/common.json","moduleParts":{"index.js":"1d13-1"},"imported":[],"importedBy":[{"uid":"1d13-6"}]},"1d13-2":{"id":"/src/locales/en-US/components.json","moduleParts":{"index.js":"1d13-3"},"imported":[],"importedBy":[{"uid":"1d13-6"}]},"1d13-4":{"id":"/src/locales/en-US/metric.json","moduleParts":{"index.js":"1d13-5"},"imported":[],"importedBy":[{"uid":"1d13-6"}]},"1d13-6":{"id":"/src/locales/en-US/index.ts","moduleParts":{"index.js":"1d13-7"},"imported":[{"uid":"1d13-0"},{"uid":"1d13-2"},{"uid":"1d13-4"}],"importedBy":[{"uid":"1d13-16"}]},"1d13-8":{"id":"/src/locales/zh-CN/common.json","moduleParts":{"index.js":"1d13-9"},"imported":[],"importedBy":[{"uid":"1d13-14"}]},"1d13-10":{"id":"/src/locales/zh-CN/components.json","moduleParts":{"index.js":"1d13-11"},"imported":[],"importedBy":[{"uid":"1d13-14"}]},"1d13-12":{"id":"/src/locales/zh-CN/metric.json","moduleParts":{"index.js":"1d13-13"},"imported":[],"importedBy":[{"uid":"1d13-14"}]},"1d13-14":{"id":"/src/locales/zh-CN/index.ts","moduleParts":{"index.js":"1d13-15"},"imported":[{"uid":"1d13-8"},{"uid":"1d13-10"},{"uid":"1d13-12"}],"importedBy":[{"uid":"1d13-16"}]},"1d13-16":{"id":"/src/locales/index.ts","moduleParts":{"index.js":"1d13-17"},"imported":[{"uid":"1d13-6"},{"uid":"1d13-14"}],"importedBy":[{"uid":"1d13-20"},{"uid":"1d13-18"}]},"1d13-18":{"id":"/src/parrotI18n.ts","moduleParts":{"index.js":"1d13-19"},"imported":[{"uid":"1d13-22"},{"uid":"1d13-23"},{"uid":"1d13-16"}],"importedBy":[{"uid":"1d13-20"}]},"1d13-20":{"id":"/src/index.ts","moduleParts":{"index.js":"1d13-21"},"imported":[{"uid":"1d13-16"},{"uid":"1d13-18"}],"importedBy":[],"isEntry":true},"1d13-22":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"1d13-18"}],"isExternal":true},"1d13-23":{"id":"lodash.merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"1d13-18"}],"isExternal":true}},"env":{"rollup":"3.15.0"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
6160
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"name":"locales","children":[{"name":"en-US","children":[{"uid":"bae8-1","name":"common.json"},{"uid":"bae8-3","name":"components.json"},{"uid":"bae8-5","name":"metric.json"},{"uid":"bae8-7","name":"index.ts"}]},{"name":"zh-CN","children":[{"uid":"bae8-9","name":"common.json"},{"uid":"bae8-11","name":"components.json"},{"uid":"bae8-13","name":"metric.json"},{"uid":"bae8-15","name":"index.ts"}]},{"uid":"bae8-17","name":"index.ts"}]},{"uid":"bae8-19","name":"parrotI18n.ts"},{"uid":"bae8-21","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"bae8-1":{"renderedLength":1973,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-0"},"bae8-3":{"renderedLength":1504,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-2"},"bae8-5":{"renderedLength":181,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-4"},"bae8-7":{"renderedLength":98,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-6"},"bae8-9":{"renderedLength":1838,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-8"},"bae8-11":{"renderedLength":1685,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-10"},"bae8-13":{"renderedLength":173,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-12"},"bae8-15":{"renderedLength":62,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-14"},"bae8-17":{"renderedLength":67,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-16"},"bae8-19":{"renderedLength":1317,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-18"},"bae8-21":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"bae8-20"}},"nodeMetas":{"bae8-0":{"id":"/src/locales/en-US/common.json","moduleParts":{"index.js":"bae8-1"},"imported":[],"importedBy":[{"uid":"bae8-6"}]},"bae8-2":{"id":"/src/locales/en-US/components.json","moduleParts":{"index.js":"bae8-3"},"imported":[],"importedBy":[{"uid":"bae8-6"}]},"bae8-4":{"id":"/src/locales/en-US/metric.json","moduleParts":{"index.js":"bae8-5"},"imported":[],"importedBy":[{"uid":"bae8-6"}]},"bae8-6":{"id":"/src/locales/en-US/index.ts","moduleParts":{"index.js":"bae8-7"},"imported":[{"uid":"bae8-0"},{"uid":"bae8-2"},{"uid":"bae8-4"}],"importedBy":[{"uid":"bae8-16"}]},"bae8-8":{"id":"/src/locales/zh-CN/common.json","moduleParts":{"index.js":"bae8-9"},"imported":[],"importedBy":[{"uid":"bae8-14"}]},"bae8-10":{"id":"/src/locales/zh-CN/components.json","moduleParts":{"index.js":"bae8-11"},"imported":[],"importedBy":[{"uid":"bae8-14"}]},"bae8-12":{"id":"/src/locales/zh-CN/metric.json","moduleParts":{"index.js":"bae8-13"},"imported":[],"importedBy":[{"uid":"bae8-14"}]},"bae8-14":{"id":"/src/locales/zh-CN/index.ts","moduleParts":{"index.js":"bae8-15"},"imported":[{"uid":"bae8-8"},{"uid":"bae8-10"},{"uid":"bae8-12"}],"importedBy":[{"uid":"bae8-16"}]},"bae8-16":{"id":"/src/locales/index.ts","moduleParts":{"index.js":"bae8-17"},"imported":[{"uid":"bae8-6"},{"uid":"bae8-14"}],"importedBy":[{"uid":"bae8-20"},{"uid":"bae8-18"}]},"bae8-18":{"id":"/src/parrotI18n.ts","moduleParts":{"index.js":"bae8-19"},"imported":[{"uid":"bae8-22"},{"uid":"bae8-23"},{"uid":"bae8-16"}],"importedBy":[{"uid":"bae8-20"}]},"bae8-20":{"id":"/src/index.ts","moduleParts":{"index.js":"bae8-21"},"imported":[{"uid":"bae8-16"},{"uid":"bae8-18"}],"importedBy":[],"isEntry":true},"bae8-22":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"bae8-18"}],"isExternal":true},"bae8-23":{"id":"lodash.merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"bae8-18"}],"isExternal":true}},"env":{"rollup":"3.15.0"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
6161
6161
 
6162
6162
  const run = () => {
6163
6163
  const width = window.innerWidth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudtower/parrot",
3
- "version": "0.25.16",
3
+ "version": "0.25.18",
4
4
  "description": "i18n modules for cloudtower sparrow and eagle",
5
5
  "keywords": [
6
6
  "i18n",
@@ -40,5 +40,5 @@
40
40
  "rollup-plugin-visualizer": "5.9.0",
41
41
  "typescript": "5.0.2"
42
42
  },
43
- "gitHead": "39511137fffa237171d3e9b8be8a79cced23b9a0"
43
+ "gitHead": "28d57d3aa5d1701234204cb320f1be137573d648"
44
44
  }