lib/i18n_screwdriver.rb in i18n_screwdriver-10.6.0 vs lib/i18n_screwdriver.rb in i18n_screwdriver-10.7.0

- old
+ new

@@ -173,11 +173,11 @@ {}.tap do |new_hash| hash.each{ |k, v| new_hash[k.to_s] = v.to_s } end end - def self.translate(string, options = {}) - I18n.translate!(generate_key(string), options) + def self.translate(string, **options) + I18n.translate!(generate_key(string), **options) rescue I18n::MissingTranslationData I18n.translate(string, options) end def self.extract_text(string)