Skip to content

AbstractColumn: support TranslatableInterface for labels#411

Open
mhvis wants to merge 1 commit into
omines:masterfrom
CleverMobi:maarten-translatable-interface
Open

AbstractColumn: support TranslatableInterface for labels#411
mhvis wants to merge 1 commit into
omines:masterfrom
CleverMobi:maarten-translatable-interface

Conversation

@mhvis
Copy link
Copy Markdown
Contributor

@mhvis mhvis commented Apr 11, 2026

This change allows column labels to accept TranslatableInterface types, mimicking the behavior of Symfony's core FormType.

By allowing the t() shortcut we get these benefits in our project:

  • Better static analysis: Symfony's translation:extract command can now automatically pick up these keys.
  • Improved IDE integration.

See Symfony's FormType:
https://github.com/symfony/form/blob/18707d0803cf949e375cd353772acaf237afb09e/Extension/Core/Type/FormType.php#L186

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.21%. Comparing base (f29e574) to head (0199976).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #411   +/-   ##
=======================================
  Coverage   95.21%   95.21%           
=======================================
  Files          40       40           
  Lines        1087     1087           
=======================================
  Hits         1035     1035           
  Misses         52       52           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mhvis mhvis marked this pull request as draft April 11, 2026 15:52
This change allows column labels to accept TranslatableInterface types,
mimicking the behavior of Symfony's core FormType.

By allowing the `t()` shortcut we get these benefits in our project:

- Better static analysis: Symfony's translation:extract command can now
automatically pick up these keys.
- Improved IDE integration.

See Symfony's FormType:
https://github.com/symfony/form/blob/18707d0803cf949e375cd353772acaf237afb09e/Extension/Core/Type/FormType.php#L186
@mhvis mhvis force-pushed the maarten-translatable-interface branch from f4754d1 to 0199976 Compare April 11, 2026 16:42
@mhvis mhvis marked this pull request as ready for review April 11, 2026 16:43
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