Bette locale fallbacks
This commit is contained in:
parent
c498ea5e57
commit
fa02de705c
@ -5,7 +5,7 @@
|
||||
!= display_attr @event, :place_name
|
||||
!= display_attr @event, :address
|
||||
!= display_attr @event, :city
|
||||
!= display_attr @event, :region, @event.region
|
||||
!= display_attr @event, :region, t(@event.region.code, scope: :countries, default: @event.region.name)
|
||||
!= display_attr @event, :locality, t("attributes.locality_#{@event.locality}")
|
||||
!= display_attr @event, :url
|
||||
- if @event.contact.present?
|
||||
|
@ -32,6 +32,7 @@ module AgendaDuLibreRails
|
||||
# config.i18n.default_locale = :de
|
||||
config.i18n.default_locale = :fr
|
||||
config.i18n.available_locales = %i[de en fr nl pt-BR]
|
||||
config.i18n.fallbacks = %i[en fr]
|
||||
|
||||
config.action_mailer.default_options = {
|
||||
from: 'moderateurs@agendadulibre.org',
|
||||
|
Loading…
Reference in New Issue
Block a user