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

Localize the filters and Actions_Col #144

Closed Vinnie1991 closed 3 years ago

Vinnie1991 commented 3 years ago

Hi, First of all, thanks for this gem!

I want to localize the Filters (for a boolean instead of "Yes/No" I want to use "Ja/Nee") and for the actions_col I want to Show action to be named "Bekijken".

Is this possible?

Thanks!

matt-riemer commented 3 years ago

Hey

There's already some basic support for internationalization. Check out

https://github.com/code-and-effect/effective_datatables/tree/master/config/locales

I think adding a locale file like one of the examples above to your app should work

Or submit a PR here 👍

Have a great day