Yes, you can using this gem without any authentication or API key.
Add this line to your application's Gemfile:
gem 'free_google_translate'
And then execute:
$ bundle
Or install it yourself as:
$ gem install free_google_translate
GoogleTranslate.translate from: "en", to: "vi", text: "hello"
Without from
param, Google Translate will auto detects your source language.
GoogleTranslate.translate to: "vi", text: "hello"
Bug reports and pull requests are welcome on GitHub at https://github.com/nhieu92/free_google_translate. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.