This page covers two distinct i18n concerns:
The admin interface ships with translations for English (en) and French (fr).
The language displayed is driven by Symfony's standard default_locale setting. Set it in config/packages/translation.yaml:
framework:
default_locale: fr # or 'en'
If a translation key is missing for the configured locale, Symfony falls back to the source language (French).
The AropixelAdminBundle provides a centralized way to declare the languages supported by your application. This configuration is then used by other bundles in the suite (e.g. PageBundle) to enable multilingual features such as the page builder locale switcher.
In config/packages/aropixel_admin.yaml:
aropixel_admin:
translations:
locales: [fr, en]
You can declare as many locales as needed:
aropixel_admin:
translations:
locales: [fr, en, de, es]
locales value |
Effect |
|---|---|
| Empty (default) | Single-language mode — no locale switcher anywhere |
One locale, e.g. [fr] |
Single-language mode |
| Two or more locales | Multilingual mode — locale switcher and sync options appear in the page builder |
The first locale in the list is the primary language. In the page builder, structural changes (adding sections, rows, blocks) made while editing the primary locale are automatically propagated to all other locales when the sync option is enabled.
The aropixel_admin.translations.locales value is registered as the container parameter aropixel_admin.locales. Other bundles in the suite (such as PageBundle) read this parameter at compile time to configure their own multilingual behaviour, so there is no need to declare locales more than once.
How can I help you explore Laravel packages today?