[Idea] Add internationalization
tvdeyen opened this issue · 2 comments
tvdeyen commented
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:
- Replace every user facing English string with a call to
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]) %>
- Add the current strings as default locale into
config/locales/blazer.en.yml
- Add localizations for the timepicker used and configure it with current
I18n.locale
- (Optional) add a locale select into the admin UI
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.
tvdeyen commented
@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?
ankane commented
Future readers, see #415 (comment)