Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Admin Bundle Laravel Package

aropixel/admin-bundle

View on GitHub
Deep Wiki
Context7

Internationalisation (i18n)

This page covers two distinct i18n concerns:

  1. The admin UI language — the language of the admin interface itself (labels, buttons, messages)
  2. Multilingual content — declaring the locales your application manages, used by the page builder and other bundles

Admin UI language

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).


Multilingual content configuration

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.

Configuration

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]

Behaviour by locale count

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

Order matters

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.

How it works internally

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
yandex/translate-api
voku/simple_html_dom
league/flysystem-vfs
bkwld/upchuck
filament/spatie-laravel-tags-plugin
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php