Skip to content

feat: add Twig translation support for grid class labels - #30

Open
denniserdmann wants to merge 4 commits into
2.xfrom
feat/8-grid-class-translations
Open

denniserdmann wants to merge 4 commits into
2.xfrom
feat/8-grid-class-translations

Conversation

@denniserdmann

Copy link
Copy Markdown
Contributor

Summary

  • add translation support for grid_columns and grid_options via Symfony translation domain grid
  • use translations/grid..yaml keys (group., column., option.*) when translated_labels: true
  • keep fallback to raw CSS class names when a translation key is missing
  • document the new translation approach in README

Why

Issue #8 asks for translations through Twig/Symfony translation files instead of contao/languages/*/default.php.

Notes

  • Existing behavior remains unchanged unless translated_labels is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant