@bigcommerce/stencil-cli 8.10.1 → 8.10.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.
package/package.json
CHANGED
|
@@ -315,14 +315,19 @@ internals.getTemplatePath = (requestPath, data) => {
|
|
|
315
315
|
}
|
|
316
316
|
return templatePath || data.template_file;
|
|
317
317
|
};
|
|
318
|
-
function
|
|
318
|
+
function getRawAcceptLanguageHeader(request) {
|
|
319
319
|
if (
|
|
320
320
|
internals.options.storeSettingsLocale.shopper_language_selection_method ===
|
|
321
321
|
'default_shopper_language'
|
|
322
322
|
) {
|
|
323
323
|
return internals.options.storeSettingsLocale.default_shopper_language;
|
|
324
324
|
}
|
|
325
|
-
return request.headers['accept-language']
|
|
325
|
+
return request.headers['accept-language'];
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
function getAcceptLanguageHeader(request) {
|
|
329
|
+
const rawHeader = getRawAcceptLanguageHeader(request);
|
|
330
|
+
return rawHeader.toLowerCase();
|
|
326
331
|
}
|
|
327
332
|
/**
|
|
328
333
|
* Creates a new Pencil Response object and returns it.
|