Repository navigation
feat: Add Breadcrumb fallback label to hCMS - #3099
Merged
Merged
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
lariciamota
marked this pull request as ready for review
November 4, 2025 13:39
lariciamota
requested review from
gabpaladino and
hellofanny
and removed request for
a team
November 4, 2025 13:39
lemagnetic
approved these changes
Nov 5, 2025
hellofanny
reviewed
Nov 5, 2025
lemagnetic
pushed a commit
that referenced
this pull request
Nov 20, 2025
## What's the purpose of this pull request? Add the fallback label to hCMS so it can be editable. We need it there so it can be translated through the CMS.⚠️ Breaking change: there is no more a hardcoded fallback label, the message necessarily has to come through CMS. This PR will be merged in the `feat/multilanguage` feature branch, which will be available only in the next faststore major version. ## How it works? It was hardcoded, so adding it to the hCMS schema allows it to be editable. ## How to test it? In a Search page, observe the breadcrumb, it should have the value configured through the hCMS. <img width="1028" height="501" alt="Screenshot 2025-11-04 at 10 27 49" src="https://github.com/user-attachments/assets/30d38c18-202c-4fa7-aeb5-5e8416019b4f" /> If the field is not being displayed in the hCMS, remember to cms sync and publish the page. <img width="1497" height="757" alt="Screenshot 2025-11-04 at 10 37 38" src="https://github.com/user-attachments/assets/d253597b-5953-4ebd-9931-2c3afb324994" /> ### Starters Deploy Preview - https://storeframework-cm652ufll028lmgv665a6xv0g-77wksgb4k.b.vtex.app/s?q=pizza ([PR](vtex-sites/faststoreqa.store#886)) ## References - [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2921)
lariciamota
added a commit
that referenced
this pull request
Nov 25, 2025
## What's the purpose of this pull request? Add the fallback label to hCMS so it can be editable. We need it there so it can be translated through the CMS.⚠️ Breaking change: there is no more a hardcoded fallback label, the message necessarily has to come through CMS. This PR will be merged in the `feat/multilanguage` feature branch, which will be available only in the next faststore major version. ## How it works? It was hardcoded, so adding it to the hCMS schema allows it to be editable. ## How to test it? In a Search page, observe the breadcrumb, it should have the value configured through the hCMS. <img width="1028" height="501" alt="Screenshot 2025-11-04 at 10 27 49" src="https://github.com/user-attachments/assets/30d38c18-202c-4fa7-aeb5-5e8416019b4f" /> If the field is not being displayed in the hCMS, remember to cms sync and publish the page. <img width="1497" height="757" alt="Screenshot 2025-11-04 at 10 37 38" src="https://github.com/user-attachments/assets/d253597b-5953-4ebd-9931-2c3afb324994" /> ### Starters Deploy Preview - https://storeframework-cm652ufll028lmgv665a6xv0g-77wksgb4k.b.vtex.app/s?q=pizza ([PR](vtex-sites/faststoreqa.store#886)) ## References - [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2921)
lemagnetic
added a commit
that referenced
this pull request
Mar 5, 2026
## What's the purpose of this pull request? Removing hardcoded labels: - #3099 - #3102 - #3107 - #3104 - #3103 - #3125 - #3131 - #3116 - #3142 - #3192 Setting Up locales - #3141 - #3143 - #3147 - #3156 - #3162 - #3145 - #3164 - #3169 - #3171 - #3176 - #3180 - #3169 custom path - #3185 - #3162 - #3156 - #3170 Components - #3093 - #3175 Fetching content - #3165 Others - #3176 - #3171 - #3181 - #3189 - #3205 ## How to test locally? - Run `pnpm I` (install all the new dependencies and needed packages) - If you want to try localization feature, go to`/discovery.config.default.js`: Enable localization: ``` localization: { enabled: true } ``` - Run `node packages/cli/bin/run.js generate-i18n ./packages/core` to fetch the bindings If the contentSource is not set to content platform yet, you will see a message to update to it. > contentSource: { > type: 'CP', > },⚠️ Note: Ensure the url is set to localhost for local testing. These locale bindings are generated in `discovery.config` after running the generate-i18n command. ```diff localization: { enabled: true, defaultLocale: 'en-US', regions: {...}, locales: { 'pt-BR': { ... bindings: [ { currencyCode: 'BRL', - url: 'https://brandless.fast.store/pt-BR', + url: 'http://localhost:3000/pt-BR', salesChannel: '2', isDefault: true, locales: [ { code: 'pt-BR', isDefault: true, }, ], }, ], }, 'it-IT': { ... bindings: [ { currencyCode: 'EUR', - url: 'https://brandless.fast.store/it-IT', + url: 'http://localhost:3000/it-IT', salesChannel: '3', isDefault: true, locales: [ { code: 'it-IT', isDefault: true, }, ], }, { currencyCode: 'EUR', - url: 'https://brandless.fast.store/europe/it', + url: 'http://localhost:3000/europe/it', salesChannel: '3', isDefault: false, locales: [ { code: 'it-IT', isDefault: true, }, ], }, ], }, 'en-US': { code: 'en-US', name: 'English', languageCode: 'en', languageName: 'English', script: 'Latn', textDirection: 'ltr', regionCode: 'US', bindings: [ { currencyCode: 'USD', - url: 'https://brandless.fast.store', + url: 'http://localhost:3000, salesChannel: '1', isDefault: true, locales: [ { code: 'en-US', isDefault: true, }, ], }, ], }, ... } ``` - Go to /packages/core and run `npmn dev` --------- Co-authored-by: Larícia Mota <[email protected]> Co-authored-by: Leandro Rodrigues <[email protected]> Co-authored-by: Otavio Moreira Meirelles <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's the purpose of this pull request?
Add the fallback label to hCMS so it can be editable. We need it there so it can be translated through the CMS.
This PR will be merged in the
feat/multilanguagefeature branch, which will be available only in the next faststore major version.How it works?
It was hardcoded, so adding it to the hCMS schema allows it to be editable.
How to test it?
In a Search page, observe the breadcrumb, it should have the value configured through the hCMS.

If the field is not being displayed in the hCMS, remember to cms sync and publish the page.
Starters Deploy Preview
References