Skip to main content
Introducing packages.sweber.dev
Documentation menuTranslations

Translations

Built-in languages and how to change texts.

Built in: de, de-CH (with "ss" instead of "ß"), en, fr, it. Regional codes fall back to the base language (fr-CH → fr), unknown codes fall back to English.

<PermitoProvider
  config={{ ...config, language: "de-CH" }}
  translations={{
    bannerTitle: "Cookies auf example.ch",
    categories: { marketing: { name: "Werbung" } },
  }}
/>

Category and service texts in the config accept a string or a map per language:

{ id: "statistics", name: { de: "Statistik", fr: "Statistiques" } }

The default texts are neutral wording, not legally reviewed. Have your final texts checked.