@cloudtower/parrot 0.26.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 +3 -1
- package/dist/esm/stats1.html +1 -1
- package/dist/umd/index.js +3 -1
- package/dist/umd/stats1.html +1 -1
- package/package.json +2 -2
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.
|
312
|
+
if (!parrotI18n.isInitialized) {
|
313
|
+
parrotI18n.init(merge(defaultOptions, options), callback);
|
314
|
+
}
|
313
315
|
};
|
314
316
|
|
315
317
|
export { initParrotI18n, locales, parrotI18n };
|
package/dist/esm/stats1.html
CHANGED
@@ -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":"
|
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.
|
315
|
+
if (!parrotI18n.isInitialized) {
|
316
|
+
parrotI18n.init(merge(defaultOptions, options), callback);
|
317
|
+
}
|
316
318
|
};
|
317
319
|
|
318
320
|
exports.initParrotI18n = initParrotI18n;
|
package/dist/umd/stats1.html
CHANGED
@@ -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":"
|
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.
|
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": "
|
43
|
+
"gitHead": "bf25ed5a0e1aa8de5be399f2c9923f29610bee94"
|
44
44
|
}
|