Shaun
Shaun

Reputation: 2052

Symfony template does not render labels in EasyAdmin

Instead of interpreting things like {{ list.page_title }}, it's just rendering as list.page_title, paginator.next, action.search, etc. I'm not getting any errors in the debug toolbar or dev log. I have cleared the cache.

EasyAdmin page

Is there some setting I missed? How do I fix this or figure out where the error is?

Upvotes: 0

Views: 379

Answers (1)

Mz1907
Mz1907

Reputation: 665

Make sure that the translator service is enabled in config.yml

framework:
    translator: { fallbacks: [ "en" ] }

For more translation customisation see: https://symfony.com/doc/current/bundles/EasyAdminBundle/tutorials/i18n.html

Upvotes: 1

Related Questions