Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad language pair when trying to translate with Google #273

Open
Adsidera opened this issue Dec 28, 2017 · 2 comments
Open

Bad language pair when trying to translate with Google #273

Adsidera opened this issue Dec 28, 2017 · 2 comments

Comments

@Adsidera
Copy link

gems/ruby-2.4.2/gems/easy_translate-0.5.0/lib/easy_translate/request.rb:47:in `perform_raw': Bad language pair: en|en (EasyTranslate::EasyTranslateException)

bundle exec i18n-tasks translate-missing
warning: parser/current is loading parser/ruby24, which recognizes
warning: 2.4.0-compliant syntax, but you are running 2.4.2.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
/Users/adsidera/.rvm/gems/ruby-2.4.2/gems/easy_translate-0.5.0/lib/easy_translate/request.rb:47:in `perform_raw': Bad language pair: en|en (EasyTranslate::EasyTranslateException)
	from /Users/adsidera/.rvm/gems/ruby-2.4.2/gems/easy_translate-0.5.0/lib/easy_translate/translation.rb:34:in `request_translations'
	from /Users/adsidera/.rvm/gems/ruby-2.4.2/gems/easy_translate-0.5.0/lib/easy_translate/threadable.rb:24:in `block in threaded_process'
	from /Users/adsidera/.rvm/gems/ruby-2.4.2/gems/easy_translate-0.5.0/lib/easy_translate/threadable.rb:24:in `map'
	from /Users/adsidera/.rvm/gems/ruby-2.4.2/gems/easy_translate-0.5.0/lib/easy_translate/threadable.rb:24:in `threaded_process'
	from /Users/adsidera/.rvm/gems/ruby-2.4.2/gems/easy_translate-0.5.0/lib/easy_translate/translation.rb:20:in `translate'
	from /Users/adsidera/.rvm/gems/ruby-2.4.2/gems/i18n-tasks-0.9.19/lib/i18n/tasks/google_translation.rb:40:in `fetch_google_translations'
	from /Users/adsidera/.rvm/gems/ruby-2.4.2/gems/i18n-tasks-0.9.19/lib/i18n/tasks/google_translation.rb:30:in `block in google_translate_list'
	from /Users/adsidera/.rvm/gems/ruby-2.4.2/gems/i18n-tasks-0.9.19/lib/i18n/tasks/google_translation.rb:29:in `each'
	from /Users/adsidera/.rvm/gems/ruby-2.4.2/gems/i18n-tasks-0.9.19/lib/i18n/tasks/google_translation.rb:29:in `map'
	from /Users/adsidera/.rvm/gems/ruby-2.4.2/gems/i18n-tasks-0.9.19/lib/i18n/tasks/google_translation.rb:29:in `google_translate_list'
	from /Users/adsidera/.rvm/gem
@kleinjm
Copy link

kleinjm commented Sep 12, 2022

I had this issue come up when I removed a key in my en.yml file but it was still present in all the other language files. Running i18n-tasks remove-unused solved the issue.

I think the problem here is just a very vague error message.

@paterlinimatias
Copy link

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants