File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
databox/api/src/Integration/Aws/Translate Expand file tree Collapse file tree 1 file changed +2
-3
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 ( [AttributeInterface::NO_LOCALE ], $ allEnabledLocales ) ;
50
50
}
51
51
52
52
if (empty ($ translatedLanguages )) {
@@ -146,8 +146,7 @@ public function doHandle(RunContext $context): void
146
146
foreach ($ toTranslate ['destinationLanguages ' ] as $ destinationLanguage ) {
147
147
$ result = $ client ->translateText ([
148
148
'Settings ' => [
149
- 'Brevity ' => 'ON ' ,
150
- 'Formality ' => 'FORMAL ' ,
149
+ 'Formality ' => 'INFORMAL ' ,
151
150
'Profanity ' => 'MASK ' ,
152
151
],
153
152
'SourceLanguageCode ' => $ toTranslate ['sourceLanguage ' ],
You can’t perform that action at this time.
0 commit comments