langsys-js-typescript 0.2.2 → 0.2.3

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/index.js CHANGED
@@ -453,6 +453,7 @@ var Translations = class {
453
453
  if (!locale) return;
454
454
  this.locale = locale;
455
455
  this.lastLoaded[locale] = (/* @__PURE__ */ new Date()).getTime() / 1e3;
456
+ this.readyResolve();
456
457
  }
457
458
  /**
458
459
  * React to a user-locale change. Fetches translations if we haven't
@@ -465,6 +466,7 @@ var Translations = class {
465
466
  this.debug.log("Using pre-fetched translations for locale", locale);
466
467
  this.locale = locale;
467
468
  this.lastLoaded[locale] = (/* @__PURE__ */ new Date()).getTime() / 1e3;
469
+ this.readyResolve();
468
470
  return true;
469
471
  }
470
472
  const now = (/* @__PURE__ */ new Date()).getTime() / 1e3;