Internationalization

Every component accepts a language prop. The widget renders all its UI text in that language, using a translation bundle shipped with fansunited-frontend-core.

Supported languages

CodeLanguage
enEnglish
bgBulgarian
deGerman
elGreek
esSpanish
frFrench
fr-beBelgian French
itItalian
plPolish
ptPortuguese
pt-brBrazilian Portuguese
roRomanian
skSlovak
srSerbian
type LanguageType =
  | "en" | "bg" | "de" | "el" | "es" | "fr" | "fr-be"
  | "it" | "pl" | "pt" | "pt-br" | "ro" | "sk" | "sr";

Per-component usage

import { ClassicQuizPlay } from "fansunited-frontend-components";

<ClassicQuizPlay
  entityId="quiz-123"
  sdk={sdk}
  template={WidgetTemplate.STANDARD}
  language="pt-br"
/>

Phone country code fallback

Components that include phone fields (lead forms) use the language code to pick a sensible default phone country if none is provided. For example, language="bg" defaults the phone country code to +359. You can override it explicitly with phoneCountryCode in LeadsOptions.

Custom labels (per component)

A handful of components expose labels props for fine-grained text overrides — useful when you want to localize a single button or title beyond the built-in translations.

  • CollectLeadLeadLabels
  • BetslipBetslipLabels

See each component page for the full label shape.