bigcommerce / stencil-cli

BigCommerce Stencil emulator for local theme development
https://developer.bigcommerce.com/stencil-docs
BSD 4-Clause "Original" or "Old" License
102 stars 141 forks source link

Stencil Cli Does Not Use Multi Storefront Channel Locale #1142

Open onur-o7 opened 9 months ago

onur-o7 commented 9 months ago

My store have multiple strorefront and main one using en and other one uses el locales. When I work on my locale my Greek Store keeps using 'en' locale.

Expected behavior

When I Start Stencil Cli with given channel id stencil start --channelId XXX. Stencil should use channel level local settings. Set With https://api.bigcommerce.com/stores/{store_hash}/v3/settings/store/locale?channel_id=XXX Related V3 Api Doc

Actual behavior

getStoreSettingsLocale in store-settings-api-client.js does not use channel_id to set locale it just uses global one.

Steps to reproduce behavior

Have mutli-channel bigcommerce storefront Set One Channels Locale settings with v3 api. Run Stencil select or use channelId option.

Environment

Stencil-cli version stencil --version: 7.2.1

Node version node -v: v18.18.0

NPM version npm -v: 10.2.0

OS: Mac OS Sonı-oma 14.1