@cloudtower/parrot 0.26.0 → 0.26.2

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":"3c3e-25","name":"common.json"},{"uid":"3c3e-27","name":"components.json"},{"uid":"3c3e-29","name":"metric.json"},{"uid":"3c3e-31","name":"index.ts"}]},{"name":"zh-CN","children":[{"uid":"3c3e-33","name":"common.json"},{"uid":"3c3e-35","name":"components.json"},{"uid":"3c3e-37","name":"metric.json"},{"uid":"3c3e-39","name":"index.ts"}]},{"uid":"3c3e-41","name":"index.ts"}]},{"uid":"3c3e-43","name":"parrotI18n.ts"},{"uid":"3c3e-45","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"3c3e-25":{"renderedLength":1829,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-24"},"3c3e-27":{"renderedLength":1426,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-26"},"3c3e-29":{"renderedLength":165,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-28"},"3c3e-31":{"renderedLength":88,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-30"},"3c3e-33":{"renderedLength":1694,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-32"},"3c3e-35":{"renderedLength":1587,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-34"},"3c3e-37":{"renderedLength":157,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-36"},"3c3e-39":{"renderedLength":52,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-38"},"3c3e-41":{"renderedLength":59,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-40"},"3c3e-43":{"renderedLength":1194,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-42"},"3c3e-45":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-44"}},"nodeMetas":{"3c3e-24":{"id":"/src/locales/en-US/common.json","moduleParts":{"index.js":"3c3e-25"},"imported":[],"importedBy":[{"uid":"3c3e-30"}]},"3c3e-26":{"id":"/src/locales/en-US/components.json","moduleParts":{"index.js":"3c3e-27"},"imported":[],"importedBy":[{"uid":"3c3e-30"}]},"3c3e-28":{"id":"/src/locales/en-US/metric.json","moduleParts":{"index.js":"3c3e-29"},"imported":[],"importedBy":[{"uid":"3c3e-30"}]},"3c3e-30":{"id":"/src/locales/en-US/index.ts","moduleParts":{"index.js":"3c3e-31"},"imported":[{"uid":"3c3e-24"},{"uid":"3c3e-26"},{"uid":"3c3e-28"}],"importedBy":[{"uid":"3c3e-40"}]},"3c3e-32":{"id":"/src/locales/zh-CN/common.json","moduleParts":{"index.js":"3c3e-33"},"imported":[],"importedBy":[{"uid":"3c3e-38"}]},"3c3e-34":{"id":"/src/locales/zh-CN/components.json","moduleParts":{"index.js":"3c3e-35"},"imported":[],"importedBy":[{"uid":"3c3e-38"}]},"3c3e-36":{"id":"/src/locales/zh-CN/metric.json","moduleParts":{"index.js":"3c3e-37"},"imported":[],"importedBy":[{"uid":"3c3e-38"}]},"3c3e-38":{"id":"/src/locales/zh-CN/index.ts","moduleParts":{"index.js":"3c3e-39"},"imported":[{"uid":"3c3e-32"},{"uid":"3c3e-34"},{"uid":"3c3e-36"}],"importedBy":[{"uid":"3c3e-40"}]},"3c3e-40":{"id":"/src/locales/index.ts","moduleParts":{"index.js":"3c3e-41"},"imported":[{"uid":"3c3e-30"},{"uid":"3c3e-38"}],"importedBy":[{"uid":"3c3e-44"},{"uid":"3c3e-42"}]},"3c3e-42":{"id":"/src/parrotI18n.ts","moduleParts":{"index.js":"3c3e-43"},"imported":[{"uid":"3c3e-46"},{"uid":"3c3e-47"},{"uid":"3c3e-40"}],"importedBy":[{"uid":"3c3e-44"}]},"3c3e-44":{"id":"/src/index.ts","moduleParts":{"index.js":"3c3e-45"},"imported":[{"uid":"3c3e-40"},{"uid":"3c3e-42"}],"importedBy":[],"isEntry":true},"3c3e-46":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"3c3e-42"}],"isExternal":true},"3c3e-47":{"id":"lodash.merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"3c3e-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":"85e4-25","name":"common.json"},{"uid":"85e4-27","name":"components.json"},{"uid":"85e4-29","name":"metric.json"},{"uid":"85e4-31","name":"index.ts"}]},{"name":"zh-CN","children":[{"uid":"85e4-33","name":"common.json"},{"uid":"85e4-35","name":"components.json"},{"uid":"85e4-37","name":"metric.json"},{"uid":"85e4-39","name":"index.ts"}]},{"uid":"85e4-41","name":"index.ts"}]},{"uid":"85e4-43","name":"parrotI18n.ts"},{"uid":"85e4-45","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"85e4-25":{"renderedLength":1829,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-24"},"85e4-27":{"renderedLength":1426,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-26"},"85e4-29":{"renderedLength":165,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-28"},"85e4-31":{"renderedLength":88,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-30"},"85e4-33":{"renderedLength":1694,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-32"},"85e4-35":{"renderedLength":1587,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-34"},"85e4-37":{"renderedLength":157,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-36"},"85e4-39":{"renderedLength":52,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-38"},"85e4-41":{"renderedLength":59,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-40"},"85e4-43":{"renderedLength":1235,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-42"},"85e4-45":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-44"}},"nodeMetas":{"85e4-24":{"id":"/src/locales/en-US/common.json","moduleParts":{"index.js":"85e4-25"},"imported":[],"importedBy":[{"uid":"85e4-30"}]},"85e4-26":{"id":"/src/locales/en-US/components.json","moduleParts":{"index.js":"85e4-27"},"imported":[],"importedBy":[{"uid":"85e4-30"}]},"85e4-28":{"id":"/src/locales/en-US/metric.json","moduleParts":{"index.js":"85e4-29"},"imported":[],"importedBy":[{"uid":"85e4-30"}]},"85e4-30":{"id":"/src/locales/en-US/index.ts","moduleParts":{"index.js":"85e4-31"},"imported":[{"uid":"85e4-24"},{"uid":"85e4-26"},{"uid":"85e4-28"}],"importedBy":[{"uid":"85e4-40"}]},"85e4-32":{"id":"/src/locales/zh-CN/common.json","moduleParts":{"index.js":"85e4-33"},"imported":[],"importedBy":[{"uid":"85e4-38"}]},"85e4-34":{"id":"/src/locales/zh-CN/components.json","moduleParts":{"index.js":"85e4-35"},"imported":[],"importedBy":[{"uid":"85e4-38"}]},"85e4-36":{"id":"/src/locales/zh-CN/metric.json","moduleParts":{"index.js":"85e4-37"},"imported":[],"importedBy":[{"uid":"85e4-38"}]},"85e4-38":{"id":"/src/locales/zh-CN/index.ts","moduleParts":{"index.js":"85e4-39"},"imported":[{"uid":"85e4-32"},{"uid":"85e4-34"},{"uid":"85e4-36"}],"importedBy":[{"uid":"85e4-40"}]},"85e4-40":{"id":"/src/locales/index.ts","moduleParts":{"index.js":"85e4-41"},"imported":[{"uid":"85e4-30"},{"uid":"85e4-38"}],"importedBy":[{"uid":"85e4-44"},{"uid":"85e4-42"}]},"85e4-42":{"id":"/src/parrotI18n.ts","moduleParts":{"index.js":"85e4-43"},"imported":[{"uid":"85e4-46"},{"uid":"85e4-47"},{"uid":"85e4-40"}],"importedBy":[{"uid":"85e4-44"}]},"85e4-44":{"id":"/src/index.ts","moduleParts":{"index.js":"85e4-45"},"imported":[{"uid":"85e4-40"},{"uid":"85e4-42"}],"importedBy":[],"isEntry":true},"85e4-46":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"85e4-42"}],"isExternal":true},"85e4-47":{"id":"lodash.merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"85e4-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":"3c3e-1","name":"common.json"},{"uid":"3c3e-3","name":"components.json"},{"uid":"3c3e-5","name":"metric.json"},{"uid":"3c3e-7","name":"index.ts"}]},{"name":"zh-CN","children":[{"uid":"3c3e-9","name":"common.json"},{"uid":"3c3e-11","name":"components.json"},{"uid":"3c3e-13","name":"metric.json"},{"uid":"3c3e-15","name":"index.ts"}]},{"uid":"3c3e-17","name":"index.ts"}]},{"uid":"3c3e-19","name":"parrotI18n.ts"},{"uid":"3c3e-21","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"3c3e-1":{"renderedLength":1973,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-0"},"3c3e-3":{"renderedLength":1504,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-2"},"3c3e-5":{"renderedLength":181,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-4"},"3c3e-7":{"renderedLength":98,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-6"},"3c3e-9":{"renderedLength":1838,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-8"},"3c3e-11":{"renderedLength":1685,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-10"},"3c3e-13":{"renderedLength":173,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-12"},"3c3e-15":{"renderedLength":62,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-14"},"3c3e-17":{"renderedLength":67,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-16"},"3c3e-19":{"renderedLength":1272,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-18"},"3c3e-21":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"3c3e-20"}},"nodeMetas":{"3c3e-0":{"id":"/src/locales/en-US/common.json","moduleParts":{"index.js":"3c3e-1"},"imported":[],"importedBy":[{"uid":"3c3e-6"}]},"3c3e-2":{"id":"/src/locales/en-US/components.json","moduleParts":{"index.js":"3c3e-3"},"imported":[],"importedBy":[{"uid":"3c3e-6"}]},"3c3e-4":{"id":"/src/locales/en-US/metric.json","moduleParts":{"index.js":"3c3e-5"},"imported":[],"importedBy":[{"uid":"3c3e-6"}]},"3c3e-6":{"id":"/src/locales/en-US/index.ts","moduleParts":{"index.js":"3c3e-7"},"imported":[{"uid":"3c3e-0"},{"uid":"3c3e-2"},{"uid":"3c3e-4"}],"importedBy":[{"uid":"3c3e-16"}]},"3c3e-8":{"id":"/src/locales/zh-CN/common.json","moduleParts":{"index.js":"3c3e-9"},"imported":[],"importedBy":[{"uid":"3c3e-14"}]},"3c3e-10":{"id":"/src/locales/zh-CN/components.json","moduleParts":{"index.js":"3c3e-11"},"imported":[],"importedBy":[{"uid":"3c3e-14"}]},"3c3e-12":{"id":"/src/locales/zh-CN/metric.json","moduleParts":{"index.js":"3c3e-13"},"imported":[],"importedBy":[{"uid":"3c3e-14"}]},"3c3e-14":{"id":"/src/locales/zh-CN/index.ts","moduleParts":{"index.js":"3c3e-15"},"imported":[{"uid":"3c3e-8"},{"uid":"3c3e-10"},{"uid":"3c3e-12"}],"importedBy":[{"uid":"3c3e-16"}]},"3c3e-16":{"id":"/src/locales/index.ts","moduleParts":{"index.js":"3c3e-17"},"imported":[{"uid":"3c3e-6"},{"uid":"3c3e-14"}],"importedBy":[{"uid":"3c3e-20"},{"uid":"3c3e-18"}]},"3c3e-18":{"id":"/src/parrotI18n.ts","moduleParts":{"index.js":"3c3e-19"},"imported":[{"uid":"3c3e-22"},{"uid":"3c3e-23"},{"uid":"3c3e-16"}],"importedBy":[{"uid":"3c3e-20"}]},"3c3e-20":{"id":"/src/index.ts","moduleParts":{"index.js":"3c3e-21"},"imported":[{"uid":"3c3e-16"},{"uid":"3c3e-18"}],"importedBy":[],"isEntry":true},"3c3e-22":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"3c3e-18"}],"isExternal":true},"3c3e-23":{"id":"lodash.merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"3c3e-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":"85e4-1","name":"common.json"},{"uid":"85e4-3","name":"components.json"},{"uid":"85e4-5","name":"metric.json"},{"uid":"85e4-7","name":"index.ts"}]},{"name":"zh-CN","children":[{"uid":"85e4-9","name":"common.json"},{"uid":"85e4-11","name":"components.json"},{"uid":"85e4-13","name":"metric.json"},{"uid":"85e4-15","name":"index.ts"}]},{"uid":"85e4-17","name":"index.ts"}]},{"uid":"85e4-19","name":"parrotI18n.ts"},{"uid":"85e4-21","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"85e4-1":{"renderedLength":1973,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-0"},"85e4-3":{"renderedLength":1504,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-2"},"85e4-5":{"renderedLength":181,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-4"},"85e4-7":{"renderedLength":98,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-6"},"85e4-9":{"renderedLength":1838,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-8"},"85e4-11":{"renderedLength":1685,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-10"},"85e4-13":{"renderedLength":173,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-12"},"85e4-15":{"renderedLength":62,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-14"},"85e4-17":{"renderedLength":67,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-16"},"85e4-19":{"renderedLength":1317,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-18"},"85e4-21":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"85e4-20"}},"nodeMetas":{"85e4-0":{"id":"/src/locales/en-US/common.json","moduleParts":{"index.js":"85e4-1"},"imported":[],"importedBy":[{"uid":"85e4-6"}]},"85e4-2":{"id":"/src/locales/en-US/components.json","moduleParts":{"index.js":"85e4-3"},"imported":[],"importedBy":[{"uid":"85e4-6"}]},"85e4-4":{"id":"/src/locales/en-US/metric.json","moduleParts":{"index.js":"85e4-5"},"imported":[],"importedBy":[{"uid":"85e4-6"}]},"85e4-6":{"id":"/src/locales/en-US/index.ts","moduleParts":{"index.js":"85e4-7"},"imported":[{"uid":"85e4-0"},{"uid":"85e4-2"},{"uid":"85e4-4"}],"importedBy":[{"uid":"85e4-16"}]},"85e4-8":{"id":"/src/locales/zh-CN/common.json","moduleParts":{"index.js":"85e4-9"},"imported":[],"importedBy":[{"uid":"85e4-14"}]},"85e4-10":{"id":"/src/locales/zh-CN/components.json","moduleParts":{"index.js":"85e4-11"},"imported":[],"importedBy":[{"uid":"85e4-14"}]},"85e4-12":{"id":"/src/locales/zh-CN/metric.json","moduleParts":{"index.js":"85e4-13"},"imported":[],"importedBy":[{"uid":"85e4-14"}]},"85e4-14":{"id":"/src/locales/zh-CN/index.ts","moduleParts":{"index.js":"85e4-15"},"imported":[{"uid":"85e4-8"},{"uid":"85e4-10"},{"uid":"85e4-12"}],"importedBy":[{"uid":"85e4-16"}]},"85e4-16":{"id":"/src/locales/index.ts","moduleParts":{"index.js":"85e4-17"},"imported":[{"uid":"85e4-6"},{"uid":"85e4-14"}],"importedBy":[{"uid":"85e4-20"},{"uid":"85e4-18"}]},"85e4-18":{"id":"/src/parrotI18n.ts","moduleParts":{"index.js":"85e4-19"},"imported":[{"uid":"85e4-22"},{"uid":"85e4-23"},{"uid":"85e4-16"}],"importedBy":[{"uid":"85e4-20"}]},"85e4-20":{"id":"/src/index.ts","moduleParts":{"index.js":"85e4-21"},"imported":[{"uid":"85e4-16"},{"uid":"85e4-18"}],"importedBy":[],"isEntry":true},"85e4-22":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"85e4-18"}],"isExternal":true},"85e4-23":{"id":"lodash.merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"85e4-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.26.0",
3
+ "version": "0.26.2",
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": "8d411e505818134815c30294ff257d59c0791f07"
43
+ "gitHead": "a0ec81dfeefc4c95d05198c2aca6318b6081fa5b"
44
44
  }