Here’s the fix in detail
In the $target_languages array in the MicrosoftTranslation class, add the following line:
‘ht’, // Haitian/Creole
‘es’, // Spanish
In the $display_name array in the MicrosoftTranslation class, add the following line:
‘ht’ => ‘Kreyòl’,
In the $translate_message array in the MicrosoftTranslation class, add the following line:
‘ht’ => ‘tradui’,
These entries can be added to the end of the respective arrays, or can be added in alphabetical order as the rest of the content of the array.