Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: strf-9245 Warn user if shopper default language file is missing or has missing keys #802

Merged
merged 1 commit into from
Dec 6, 2021

Conversation

jairo-bc
Copy link
Contributor

@jairo-bc jairo-bc commented Dec 2, 2021

What?

As a Stencil CLI user,
When I run stencil start for a particular store,
I will receive a warning if the store's default shopper language does not have a language file within the theme.

Tickets / Documentation

Screenshots (if appropriate)

Screenshot 2021-12-02 at 17 24 40

cc @bigcommerce/storefront-team

this._logger.log(
`${
'Warning'.yellow
}: lang folder is missing default shopper language: ${defaultShopperLanguage}`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍹 I would maybe reword this to be something like "missing language file for default shopper language: ${defaultShopperLanguage}". I think that reads more naturally to me.

this._logger.log(
`${
'Warning'.yellow
}: file: ${defaultLangFilePath} doesn't have ${langKey}, which is presented in ${filePath}`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍹 which is presented in -> which is present in

@bookernath
Copy link
Contributor

Nice work!

@jairo-bc jairo-bc merged commit 1660d15 into bigcommerce:master Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants