@lwrjs/view-registry 0.13.0-alpha.16 → 0.13.0-alpha.17
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.
|
@@ -169,6 +169,9 @@ var LwrViewHandler = class {
|
|
|
169
169
|
async getViewResponse(viewRequest, route, runtimeEnvironment, runtimeParams = {}, view, viewParams, renderOptions) {
|
|
170
170
|
const {id, bootstrap} = route;
|
|
171
171
|
const managedView = {...view, id, bootstrap};
|
|
172
|
+
if (view.locale) {
|
|
173
|
+
runtimeParams.locale = view.locale;
|
|
174
|
+
}
|
|
172
175
|
const viewResponse = {
|
|
173
176
|
view: managedView,
|
|
174
177
|
viewParams,
|
|
@@ -111,7 +111,7 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
|
|
|
111
111
|
let def = (await resourceRegistry.getResource({ specifier: shimBundle, version }, runtimeEnvironment, runtimeParams));
|
|
112
112
|
if (!def) {
|
|
113
113
|
// HACK: fallback to looking for the other shim.
|
|
114
|
-
// TODO: remove this once
|
|
114
|
+
// TODO: remove this once KJ fixes W-15953000
|
|
115
115
|
let fallbackShimBundle;
|
|
116
116
|
if (shimBundle === 'lwr-loader-shim-legacy.bundle.js') {
|
|
117
117
|
fallbackShimBundle = 'lwr-loader-shim-legacy.bundle.min.js';
|
package/build/es/view-handler.js
CHANGED
|
@@ -197,6 +197,11 @@ export class LwrViewHandler {
|
|
|
197
197
|
view, viewParams, renderOptions) {
|
|
198
198
|
const { id, bootstrap } = route;
|
|
199
199
|
const managedView = { ...view, id, bootstrap };
|
|
200
|
+
// If this is a localized view request (could have come from a route handler)
|
|
201
|
+
// Update the runtime params
|
|
202
|
+
if (view.locale) {
|
|
203
|
+
runtimeParams.locale = view.locale;
|
|
204
|
+
}
|
|
200
205
|
const viewResponse = {
|
|
201
206
|
view: managedView,
|
|
202
207
|
viewParams,
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.13.0-alpha.
|
|
7
|
+
"version": "0.13.0-alpha.17",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"build": "tsc -b"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@lwrjs/app-service": "0.13.0-alpha.
|
|
37
|
-
"@lwrjs/diagnostics": "0.13.0-alpha.
|
|
38
|
-
"@lwrjs/instrumentation": "0.13.0-alpha.
|
|
39
|
-
"@lwrjs/shared-utils": "0.13.0-alpha.
|
|
36
|
+
"@lwrjs/app-service": "0.13.0-alpha.17",
|
|
37
|
+
"@lwrjs/diagnostics": "0.13.0-alpha.17",
|
|
38
|
+
"@lwrjs/instrumentation": "0.13.0-alpha.17",
|
|
39
|
+
"@lwrjs/shared-utils": "0.13.0-alpha.17",
|
|
40
40
|
"lru-cache": "^10.2.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@lwrjs/types": "0.13.0-alpha.
|
|
43
|
+
"@lwrjs/types": "0.13.0-alpha.17"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=18.0.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "03f98478f36c91075d244431f91d02be0cd5d4bd"
|
|
49
49
|
}
|