You are here

public function LingotekInterfaceTranslationServiceInterface::getSourceLocale in Lingotek Translation 3.6.x

Same name and namespace in other branches
  1. 4.0.x src/LingotekInterfaceTranslationServiceInterface.php \Drupal\lingotek\LingotekInterfaceTranslationServiceInterface::getSourceLocale()
  2. 3.2.x src/LingotekInterfaceTranslationServiceInterface.php \Drupal\lingotek\LingotekInterfaceTranslationServiceInterface::getSourceLocale()
  3. 3.3.x src/LingotekInterfaceTranslationServiceInterface.php \Drupal\lingotek\LingotekInterfaceTranslationServiceInterface::getSourceLocale()
  4. 3.4.x src/LingotekInterfaceTranslationServiceInterface.php \Drupal\lingotek\LingotekInterfaceTranslationServiceInterface::getSourceLocale()
  5. 3.5.x src/LingotekInterfaceTranslationServiceInterface.php \Drupal\lingotek\LingotekInterfaceTranslationServiceInterface::getSourceLocale()
  6. 3.7.x src/LingotekInterfaceTranslationServiceInterface.php \Drupal\lingotek\LingotekInterfaceTranslationServiceInterface::getSourceLocale()
  7. 3.8.x src/LingotekInterfaceTranslationServiceInterface.php \Drupal\lingotek\LingotekInterfaceTranslationServiceInterface::getSourceLocale()

Gets the translation source locale of a given component.

Parameters

string $component: The component which we want to get the source locale.

Return value

string The locale as expected by the Lingotek service.

1 method overrides LingotekInterfaceTranslationServiceInterface::getSourceLocale()
LingotekInterfaceTranslationService::getSourceLocale in src/LingotekInterfaceTranslationService.php
Gets the translation source locale of a given component.

File

src/LingotekInterfaceTranslationServiceInterface.php, line 159

Class

LingotekInterfaceTranslationServiceInterface
Service for managing Lingotek interface translations.

Namespace

Drupal\lingotek

Code

public function getSourceLocale($component);