You are here

public function TestTranslator::getDefaultRemoteLanguagesMappings in Translation Management Tool 8

Specifies default mappings for local to remote language codes.

This method can be used in case we know in advance what language codes are used by the remote translator and to which local language codes they correspond.

Return value

array An array of local => remote language codes.

Overrides TranslatorPluginBase::getDefaultRemoteLanguagesMappings

File

tmgmt_test/src/Plugin/tmgmt/Translator/TestTranslator.php, line 44

Class

TestTranslator
Test source plugin implementation.

Namespace

Drupal\tmgmt_test\Plugin\tmgmt\Translator

Code

public function getDefaultRemoteLanguagesMappings() {
  return array(
    'en' => 'en-us',
    'de' => 'de-ch',
  );
}