@hydranium/glsp-client-theia 1.0.0-next.31 → 1.0.0-next.33

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.
@@ -110,10 +110,22 @@ export declare class HydraniumDiagramLoader extends DiagramLoader {
110
110
  protected reportLoadFailure(err: unknown): Promise<boolean>;
111
111
  /**
112
112
  * The sentence a failed load is reported with, on every surface that reports
113
- * it, and the only seam an adopter rewords or localizes it at. Public
114
- * because the canvas overlay is one of those surfaces and lives in another
115
- * class: it renders this failure exactly when the `StatusAction` did not
116
- * land, so a second copy of the sentence there could only ever drift unseen.
113
+ * it. Public because the canvas overlay is one of those surfaces and lives in
114
+ * another class: it renders this failure exactly when the `StatusAction` did
115
+ * not land, so a second copy of the sentence there could only ever drift
116
+ * unseen.
117
+ *
118
+ * **The seam and the catalogue key answer different questions, so it carries
119
+ * both.** Overriding this method changes the WORDING for every user of one
120
+ * adopter's product; the key is what gives a reader the sentence in their own
121
+ * language, and no override can supply that without an adopter writing a
122
+ * subclass per locale — which is the thing a catalogue exists to avoid. Two
123
+ * of the three surfaces this reaches are user-visible, so the audience
124
+ * triage answers it: a host-bound string a user sees takes an inline key.
125
+ *
126
+ * The Output-channel line is therefore localized too, which is deliberate
127
+ * rather than overlooked — the alternative is a second English copy of one
128
+ * sentence, and the reason for a single source here has not changed.
117
129
  */
118
130
  loadFailureLabel(err: unknown): string;
119
131
  /** Render a thrown value as a message. Shared so the channel line, the status
@@ -1 +1 @@
1
- {"version":3,"file":"diagram-loader.d.ts","sourceRoot":"","sources":["../../src/browser/diagram-loader.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,aAAa,EAAE,KAAK,qBAAqB,EAAgB,MAAM,sBAAsB,CAAC;AAC/F,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAG/C;;;;;;GAMG;AACH,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SAAS,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM;CAG7C"}
@@ -21,6 +21,7 @@ exports.HydraniumDiagramLoader = void 0;
21
21
  const client_1 = require("@eclipse-glsp/client");
22
22
  const browser_1 = require("@hydranium/client-theia/lib/browser");
23
23
  const protocol_1 = require("@hydranium/protocol");
24
+ const core_1 = require("@theia/core");
24
25
  const inversify_1 = require("@theia/core/shared/inversify");
25
26
  /**
26
27
  * Diagram loader that never lets a load failure vanish.
@@ -128,13 +129,25 @@ let HydraniumDiagramLoader = class HydraniumDiagramLoader extends client_1.Diagr
128
129
  }
129
130
  /**
130
131
  * The sentence a failed load is reported with, on every surface that reports
131
- * it, and the only seam an adopter rewords or localizes it at. Public
132
- * because the canvas overlay is one of those surfaces and lives in another
133
- * class: it renders this failure exactly when the `StatusAction` did not
134
- * land, so a second copy of the sentence there could only ever drift unseen.
132
+ * it. Public because the canvas overlay is one of those surfaces and lives in
133
+ * another class: it renders this failure exactly when the `StatusAction` did
134
+ * not land, so a second copy of the sentence there could only ever drift
135
+ * unseen.
136
+ *
137
+ * **The seam and the catalogue key answer different questions, so it carries
138
+ * both.** Overriding this method changes the WORDING for every user of one
139
+ * adopter's product; the key is what gives a reader the sentence in their own
140
+ * language, and no override can supply that without an adopter writing a
141
+ * subclass per locale — which is the thing a catalogue exists to avoid. Two
142
+ * of the three surfaces this reaches are user-visible, so the audience
143
+ * triage answers it: a host-bound string a user sees takes an inline key.
144
+ *
145
+ * The Output-channel line is therefore localized too, which is deliberate
146
+ * rather than overlooked — the alternative is a second English copy of one
147
+ * sentence, and the reason for a single source here has not changed.
135
148
  */
136
149
  loadFailureLabel(err) {
137
- return `Diagram failed to load: ${this.formatError(err)}`;
150
+ return core_1.nls.localize('hydranium/glsp-client-theia/diagram-load-failed', 'Diagram failed to load: {0}', this.formatError(err));
138
151
  }
139
152
  /** Render a thrown value as a message. Shared so the channel line, the status
140
153
  * overlay and any consumer rendering {@link DiagramLoadFailure.error} agree.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QACzC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAC/B,IAAI,CAAC;YACF,MAAM,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,qBAAY,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;YACxF,OAAO,IAAI,CAAC;QACf,CAAC;QAAC,OAAO,SAAS,EAAE,CAAC;YAClB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,kEAAkE,EAAE,SAAS,CAAC,CAAC;YAClG,OAAO,KAAK,CAAC;QAChB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,gBAAgB,CAAC,GAAY;QAC1B,OAAO,UAAG,CAAC,QAAQ,CAAC,iDAAiD,EAAE,6BAA6B,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;IAChI,CAAC;IAED;qFACiF;IACvE,WAAW,CAAC,GAAY;QAC/B,OAAO,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3D,CAAC;CACH,CAAA;AA1GY,wDAAsB;AACU;IAAzC,IAAA,kBAAM,EAAC,uBAAa,CAAC;8BAA8B,uBAAa;uDAAC;iCADxD,sBAAsB;IADlC,IAAA,sBAAU,GAAE;GACA,sBAAsB,CA0GlC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hydranium/glsp-client-theia",
3
- "version": "1.0.0-next.31",
3
+ "version": "1.0.0-next.33",
4
4
  "description": "Theia-coupled client primitives for GLSP heads built on @hydranium/glsp-server. Provides the action dispatcher, channel logger, and connection-handler bases that Theia-based adopters extend; companion of @hydranium/glsp-server.",
5
5
  "keywords": [
6
6
  "hydranium",
@@ -78,8 +78,8 @@
78
78
  "devDependencies": {
79
79
  "@eclipse-glsp/client": "2.7.0",
80
80
  "@eclipse-glsp/theia-integration": "2.7.0",
81
- "@hydranium/client-theia": "1.0.0-next.31",
82
- "@hydranium/protocol": "1.0.0-next.31",
81
+ "@hydranium/client-theia": "1.0.0-next.33",
82
+ "@hydranium/protocol": "1.0.0-next.33",
83
83
  "@theia/core": "^1.70.0",
84
84
  "@theia/output": "^1.70.0",
85
85
  "@theia/process": "^1.70.0",
@@ -93,8 +93,8 @@
93
93
  "peerDependencies": {
94
94
  "@eclipse-glsp/client": "^2.6.0",
95
95
  "@eclipse-glsp/theia-integration": "^2.6.0",
96
- "@hydranium/client-theia": "1.0.0-next.31",
97
- "@hydranium/protocol": "1.0.0-next.31",
96
+ "@hydranium/client-theia": "1.0.0-next.33",
97
+ "@hydranium/protocol": "1.0.0-next.33",
98
98
  "@theia/core": "^1.70.0",
99
99
  "@theia/output": "^1.70.0",
100
100
  "@theia/process": "^1.70.0",
@@ -10,6 +10,7 @@
10
10
  import { DiagramLoader, type DiagramLoadingOptions, StatusAction } from '@eclipse-glsp/client';
11
11
  import { ChannelLogger } from '@hydranium/client-theia/lib/browser';
12
12
  import { Deferred } from '@hydranium/protocol';
13
+ import { nls } from '@theia/core';
13
14
  import { inject, injectable } from '@theia/core/shared/inversify';
14
15
 
15
16
  /**
@@ -156,13 +157,25 @@ export class HydraniumDiagramLoader extends DiagramLoader {
156
157
 
157
158
  /**
158
159
  * The sentence a failed load is reported with, on every surface that reports
159
- * it, and the only seam an adopter rewords or localizes it at. Public
160
- * because the canvas overlay is one of those surfaces and lives in another
161
- * class: it renders this failure exactly when the `StatusAction` did not
162
- * land, so a second copy of the sentence there could only ever drift unseen.
160
+ * it. Public because the canvas overlay is one of those surfaces and lives in
161
+ * another class: it renders this failure exactly when the `StatusAction` did
162
+ * not land, so a second copy of the sentence there could only ever drift
163
+ * unseen.
164
+ *
165
+ * **The seam and the catalogue key answer different questions, so it carries
166
+ * both.** Overriding this method changes the WORDING for every user of one
167
+ * adopter's product; the key is what gives a reader the sentence in their own
168
+ * language, and no override can supply that without an adopter writing a
169
+ * subclass per locale — which is the thing a catalogue exists to avoid. Two
170
+ * of the three surfaces this reaches are user-visible, so the audience
171
+ * triage answers it: a host-bound string a user sees takes an inline key.
172
+ *
173
+ * The Output-channel line is therefore localized too, which is deliberate
174
+ * rather than overlooked — the alternative is a second English copy of one
175
+ * sentence, and the reason for a single source here has not changed.
163
176
  */
164
177
  loadFailureLabel(err: unknown): string {
165
- return `Diagram failed to load: ${this.formatError(err)}`;
178
+ return nls.localize('hydranium/glsp-client-theia/diagram-load-failed', 'Diagram failed to load: {0}', this.formatError(err));
166
179
  }
167
180
 
168
181
  /** Render a thrown value as a message. Shared so the channel line, the status