lib/i18n_screwdriver.rb in i18n_screwdriver-10.7.0 vs lib/i18n_screwdriver.rb in i18n_screwdriver-10.7.1
- old
+ new
@@ -176,10 +176,10 @@
end
def self.translate(string, **options)
I18n.translate!(generate_key(string), **options)
rescue I18n::MissingTranslationData
- I18n.translate(string, options)
+ I18n.translate(string, **options)
end
def self.extract_text(string)
namespace, text = string.split("|", 2)
text ? text : namespace