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

Fix Deepl translator #367

Merged
merged 1 commit into from
Dec 21, 2020
Merged

Fix Deepl translator #367

merged 1 commit into from
Dec 21, 2020

Conversation

lukasbischof
Copy link
Contributor

The issue raised in #363 still persists:

bundler: failed to load command: i18n-tasks (/Users/lukas/.rbenv/versions/2.7.1/bin/i18n-tasks)
NoMethodError: undefined method `map' for #<DeepL::Resources::Text:0x00007ff62e21ca60>
Did you mean?  tap
  /Users/lukas/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/i18n-tasks-0.9.32/lib/i18n/tasks/translators/deepl_translator.rb:20:in `translate_values'
  /Users/lukas/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/i18n-tasks-0.9.32/lib/i18n/tasks/translators/base_translator.rb:43:in `fetch_translations'
  /Users/lukas/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/i18n-tasks-0.9.32/lib/i18n/tasks/translators/base_translator.rb:33:in `block in translate_pairs'
  /Users/lukas/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/i18n-tasks-0.9.32/lib/i18n/tasks/translators/base_translator.rb:32:in `each'
[...]

Also, the receiver expects an enumerable:

bundler: failed to load command: i18n-tasks (/Users/lukas/.rbenv/versions/2.7.1/bin/i18n-tasks)
NoMethodError: undefined method `each' for "Le mot de passe ne peut pas être modifié":String
  /Users/lukas/.rbenv/versions/2.7.1/bin/i18n-tasks:in `each'
[...]

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 this pull request may close these issues.

2 participants