@svelstack/translator 0.9.4 → 0.9.5

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -362,6 +362,7 @@ var Translator = class {
362
362
  if (this._language !== val) {
363
363
  await this.load(val);
364
364
  this._language = val;
365
+ this.changed();
365
366
  }
366
367
  }
367
368
  /**
@@ -420,7 +421,6 @@ var Translator = class {
420
421
  } else {
421
422
  this.translations = dictionary;
422
423
  }
423
- this.changed();
424
424
  }
425
425
  /**
426
426
  * Determines the appropriate language to use.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svelstack/translator",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "scripts": {
5
5
  "build": "tsup && npm run prepack",
6
6
  "prepack": "publint",