diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-10-24 18:37:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 18:37:57 +0200 |
commit | 30453fab80d55fc10766f0e067c31d96753ccfda (patch) | |
tree | f20ba5b906a1844061706f7dca462c158a94bc77 /app/lib/translation_service/deepl.rb | |
parent | 8046cf34d68209b39845e07a9d2db40926cc5512 (diff) |
Add mention of the translation provider when translating a post (#19433)
Diffstat (limited to 'app/lib/translation_service/deepl.rb')
-rw-r--r-- | app/lib/translation_service/deepl.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/translation_service/deepl.rb b/app/lib/translation_service/deepl.rb index b75b604a8..537fd24c0 100644 --- a/app/lib/translation_service/deepl.rb +++ b/app/lib/translation_service/deepl.rb @@ -46,7 +46,7 @@ class TranslationService::DeepL < TranslationService raise UnexpectedResponseError unless json.is_a?(Hash) - Translation.new(text: json.dig('translations', 0, 'text'), detected_source_language: json.dig('translations', 0, 'detected_source_language')&.downcase) + Translation.new(text: json.dig('translations', 0, 'text'), detected_source_language: json.dig('translations', 0, 'detected_source_language')&.downcase, provider: 'DeepL.com') rescue Oj::ParseError raise UnexpectedResponseError end |