stencil-cli icon indicating copy to clipboard operation
stencil-cli copied to clipboard

Stencil Cli Does Not Use Multi Storefront Channel Locale

Open oxo-fi-fi opened this issue 2 years ago • 0 comments

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

oxo-fi-fi avatar Oct 27 '23 16:10 oxo-fi-fi