File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
databox/api/src/Integration/Aws/Translate Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public function doHandle(RunContext $context): void
46
46
$ srcLocales = $ preferredSourceLanguages ;
47
47
$ srcLocales = array_merge ($ srcLocales , $ lc , [AttributeInterface::NO_LOCALE ]);
48
48
} else {
49
- $ srcLocales = [AttributeInterface::NO_LOCALE ];
49
+ $ srcLocales = array_merge ( $ allEnabledLocales , [AttributeInterface::NO_LOCALE ]) ;
50
50
}
51
51
52
52
if (empty ($ translatedLanguages )) {
@@ -145,11 +145,6 @@ public function doHandle(RunContext $context): void
145
145
146
146
foreach ($ toTranslate ['destinationLanguages ' ] as $ destinationLanguage ) {
147
147
$ result = $ client ->translateText ([
148
- 'Settings ' => [
149
- 'Brevity ' => 'ON ' ,
150
- 'Formality ' => 'FORMAL ' ,
151
- 'Profanity ' => 'MASK ' ,
152
- ],
153
148
'SourceLanguageCode ' => $ toTranslate ['sourceLanguage ' ],
154
149
'TargetLanguageCode ' => $ destinationLanguage ,
155
150
'Text ' => $ toTranslate ['text ' ],
You can’t perform that action at this time.
0 commit comments