Conversation
|
This is going the direction I don't want it to go. self.default_column_options = -> (column) {
{header: -> { I18n.t(column.name, namespace: "other.columns")}
}
self.default_filter_options = -> (filter) {
{header: -> {I18n(filter.name, namespace: "other.filters")}
}Otherwise I believe we can't achieve the options that will fit every use case. This way allows you to redefine translations lookup in your own project in your own way and it would have explicit answers on how it should behave on edge cases. This is not currently supported, so I am open for feedback on this approach. |
|
@bogdan that could would work for me. A Want me to give it a shot and open a different PR? |
|
100% |
Introduces option to configure i18n namespaces per grid.
Example use case - I want to re-use
activerecord.attributes.modeltranslation namespace for most of my backoffice app grids.