@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/stencil-cli",
3
- "version": "8.10.1",
3
+ "version": "8.10.2",
4
4
  "type": "module",
5
5
  "description": "CLI tool to run BigCommerce Stores locally for theme development.",
6
6
  "main": "index.js",
@@ -315,14 +315,19 @@ internals.getTemplatePath = (requestPath, data) => {
315
315
  }
316
316
  return templatePath || data.template_file;
317
317
  };
318
- function getAcceptLanguageHeader(request) {
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'].toLowerCase();
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.