Bette locale fallbacks

This commit is contained in:
echarp 2019-04-25 15:57:09 +02:00
parent c498ea5e57
commit fa02de705c
2 changed files with 2 additions and 1 deletions

View File

@ -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?

View File

@ -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',