You are here

public function LingotekApiInterface::getTranslation in Lingotek Translation 3.5.x

Same name and namespace in other branches
  1. 8 src/Remote/LingotekApiInterface.php \Drupal\lingotek\Remote\LingotekApiInterface::getTranslation()
  2. 8.2 src/Remote/LingotekApiInterface.php \Drupal\lingotek\Remote\LingotekApiInterface::getTranslation()
  3. 4.0.x src/Remote/LingotekApiInterface.php \Drupal\lingotek\Remote\LingotekApiInterface::getTranslation()
  4. 3.0.x src/Remote/LingotekApiInterface.php \Drupal\lingotek\Remote\LingotekApiInterface::getTranslation()
  5. 3.1.x src/Remote/LingotekApiInterface.php \Drupal\lingotek\Remote\LingotekApiInterface::getTranslation()
  6. 3.2.x src/Remote/LingotekApiInterface.php \Drupal\lingotek\Remote\LingotekApiInterface::getTranslation()
  7. 3.3.x src/Remote/LingotekApiInterface.php \Drupal\lingotek\Remote\LingotekApiInterface::getTranslation()
  8. 3.4.x src/Remote/LingotekApiInterface.php \Drupal\lingotek\Remote\LingotekApiInterface::getTranslation()
  9. 3.6.x src/Remote/LingotekApiInterface.php \Drupal\lingotek\Remote\LingotekApiInterface::getTranslation()
  10. 3.7.x src/Remote/LingotekApiInterface.php \Drupal\lingotek\Remote\LingotekApiInterface::getTranslation()
  11. 3.8.x src/Remote/LingotekApiInterface.php \Drupal\lingotek\Remote\LingotekApiInterface::getTranslation()

Gets a document target translation for a given locale from the Lingotek service.

Parameters

string $id: The document id.

string $locale: The target locale.

bool $useSource: (Optional) Flag indicating if should return the source if this is not yet translated. By default is FALSE.

Return value

\Psr\Http\Message\ResponseInterface A response.

1 method overrides LingotekApiInterface::getTranslation()
LingotekApi::getTranslation in src/Remote/LingotekApi.php
Gets a document target translation for a given locale from the Lingotek service.

File

src/Remote/LingotekApiInterface.php, line 168

Class

LingotekApiInterface

Namespace

Drupal\lingotek\Remote

Code

public function getTranslation($id, $locale, $useSource);