code-and-effect / effective_datatables

An effective ActiveRecord to Datatables dsl for Ruby on Rails. Make intelligent tables quickly.
MIT License
133 stars 36 forks source link

Auto-compute column labels using AR I18N #165

Closed banzera closed 2 years ago

banzera commented 2 years ago

Not sure if I'm just overlooking this feature, but it would be really nice to compute column labels using the Active Record I18N framework (Model.human_attribute_name in particular).

I looked at the code and it looks like the column label is computed either from the passed-in value, or from a simple heuristic using the column name.

I have a patch worked up, let me know if its of any interest.

danajanssen commented 2 years ago

Sure :)

matt-riemer commented 2 years ago

"one day" we'll build out better internationalization support