Skip to content

Multi-language & multi-channel

P2Lab Badges supports Shopware’s native multi-language and multi-channel infrastructure. Badge text is a translatable field — you maintain one badge per intent (e.g. “Sale”) and add translations for every storefront language.

The Text field on every badge is translatable using the standard Shopware language switcher in the admin top bar:

  1. Open the badge form.
  2. Switch the admin language (top-right of the page).
  3. Update the Text field with the translated label.
  4. Save.

Shopware persists each translation against the corresponding language ID. The storefront automatically picks the active language’s translation when rendering the badge.

If a language is missing a translation, Shopware falls back to the default language’s value (typically en-GB).

The Text field supports HTML. You can use it for:

  • Highlighting parts of the badge text in a different color (<span style="...">...</span>)
  • Adding line breaks (<br>)
  • Embedding inline icons via Unicode or <img>

Keep the HTML simple — the badge container has limited space and complex markup tends to break the layout. Inline styling is fine for small accents; structural changes (lists, tables) are not.

Every badge has a Sales channels field on the visibility settings. Leave it empty to render on all channels; pick one or more to restrict.

This combines naturally with multi-language — e.g. one badge runs across both your German and English storefronts, but only the matching translation shows on each side.

Typical setup for an international store:

  • Maintain one badge per intent, e.g. “Sale”.
  • Add translations for every active language.
  • Leave the Sales channels field empty if the badge applies to every storefront, or pick the relevant channels if not.

The following badge fields are not translatable — they are configuration, not content:

  • Name (admin-only label)
  • Type
  • Priority
  • Placements
  • Styling fields (colors, fonts, etc.)
  • Icon
  • Date schedule
  • Assignment (products, categories, manufacturers, streams)
  • Rules

A change to any of these applies across all languages.