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