Closed tvdeyen closed 1 year ago
@ankane are you interested in this feature? I would like to continue working on it, because I think it would be beneficial for lot's of people. WDYT?
Future readers, see https://github.com/ankane/blazer/pull/415#issuecomment-1428772430
This gem is awesome. Thanks for releasing it.
It would be great if the interface could be internationalized (localized and translated), though.
Since this is a Rails engine the
i18n
gem and all its features as well as the action view (t
) helper are already present.What we would need to do is:
I18n.t
in controllers/models or simplyt
in views with a proper key and to avoid conflicts theblazer
scope
. Ie. Instead of"Select a date"
inapp/views/blazer/_variables.html.erb
we would use<%= t(:placeholder, scope: [:blazer, :date_select]) %>
config/locales/blazer.en.yml
I18n.locale
If this is something you would accept as a contribution I would start working on it and open a WIP PR to further discuss how to implement this.