@cloudtower/parrot 0.26.0-alpha.0 → 0.26.1

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