@wuchale/svelte 0.19.1 → 0.19.2

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.
@@ -139,7 +139,7 @@ export class SvelteTransformer extends Transformer {
139
139
  if (!pass) {
140
140
  return [];
141
141
  }
142
- this.mstr.update(node.start + startWh, node.end - endWh, `{${this.vars().rtTrans}(${this.index.get(getKey(msgInfo.msgStr, msgInfo.context))})}`);
142
+ this.mstr.update(node.start + startWh, node.end - endWh, `{${this.literalRepl(msgInfo)}}`);
143
143
  return [msgInfo];
144
144
  };
145
145
  visitSpreadAttribute = (node) => this.visit(node.expression);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wuchale/svelte",
3
- "version": "0.19.1",
3
+ "version": "0.19.2",
4
4
  "description": "Protobuf-like i18n from plain code: Svelte adapter",
5
5
  "scripts": {
6
6
  "dev": "tsc --watch",
@@ -53,7 +53,7 @@
53
53
  "dependencies": {
54
54
  "magic-string": "^0.30.21",
55
55
  "svelte": "^5",
56
- "wuchale": "^0.21.2"
56
+ "wuchale": "^0.22.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "acorn": "^8.16.0",