Returns all available target languages that are supported by this service when given a source language.
TranslatorInterface $translator: The translator entity.
$source_language: The source language.
array An array of remote languages in ISO format.
Overrides TranslatorPluginBase::getSupportedTargetLanguages
public function getSupportedTargetLanguages(TranslatorInterface $translator, $source_language) {
$languages = array(
'en',
'de',
'es',
'it',
'pt',
'zh-hans',
'gsw-berne',
);
$languages = array_combine($languages, $languages);
unset($languages[$source_language]);
return $languages;
}