Gets existing remote languages mappings.
This method is responsible to provide all local to remote language pairs.
array An array of local => remote language codes
Overrides TranslatorInterface::getRemoteLanguagesMappings
public function getRemoteLanguagesMappings() {
$remote_languages_mappings = [];
foreach (\Drupal::languageManager()
->getLanguages() as $language => $info) {
$remote_languages_mappings[$language] = $this
->mapToRemoteLanguage($language);
}
return $remote_languages_mappings;
}