lib/translate_self/translation.rb in translate_self-0.8.0 vs lib/translate_self/translation.rb in translate_self-0.9.0

- old
+ new

@@ -42,10 +42,10 @@ # @return [String] the contents translated to another language @@languages.each do |lan| define_method("translate_to_#{lan}") do |language = lan| call_deepl(self, self.language, language) end - alias_method "t_to_#{lan}", "translate_to_#{lan}" + alias_method "to_#{lan}", "translate_to_#{lan}" end private def call_deepl(text, language = self.language, to_lan = to_language)