diff --git a/app/helpers/i18n_helper.rb b/app/helpers/i18n_helper.rb index 1b56ebe..fa39abe 100644 --- a/app/helpers/i18n_helper.rb +++ b/app/helpers/i18n_helper.rb @@ -32,6 +32,7 @@ module I18nHelper end def date(date, format = :long) + return '' unless date.present? I18n.l(date.is_a?(String) ? Date.parse(date) : date, format: format) end diff --git a/config/locales/en.yml b/config/locales/en.yml index 096a7c0..788ad2f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2459,6 +2459,9 @@ en: show_interest: Click if you are interested in this workshop add: Add new options: + currency: + CAD: CAD + USD: USD send_to: registered: Everyone who has completed their registration pre_registered: Everyone who has begun or completed the registration process