lib/translation.rb in habluhablu-0.5.6 vs lib/translation.rb in habluhablu-0.5.7

- old
+ new

@@ -23,10 +23,10 @@ @request["accept-encoding"] = "application/gzip" File.open("config/locales/api_key.txt", "a+") do |f| $KEY = f.read end if $KEY.length <= 2 || $KEY.nil? - @request["x-rapidapi-key"] = 'ef9f61b3d0mshb95dcad44627e7cp176d4bjsn8f4d9e2a1706' + @request["x-rapidapi-key"] = 'Add your google api key!' else @request["x-rapidapi-key"] = $KEY end @request["x-rapidapi-host"] = "google-translate1.p.rapidapi.com" @request.body = "q=#{@text}!&target=#{@target}&source=#{@source}"