You are here

public function LingotekInterface::getLocalesInfo in Lingotek Translation 3.4.x

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

Get the available locales on Lingotek with extra information.

Return value

array Array of locales. Empty array if there is an error. The array has the locale as key, and the value is a nested array with the following keys: code, language_code, title, language, country_code, and country.

2 methods override LingotekInterface::getLocalesInfo()
Lingotek::getLocalesInfo in src/Lingotek.php
Get the available locales on Lingotek with extra information.
LingotekFake::getLocalesInfo in tests/modules/lingotek_test/src/LingotekFake.php
Get the available locales on Lingotek with extra information.

File

src/LingotekInterface.php, line 87

Class

LingotekInterface

Namespace

Drupal\lingotek

Code

public function getLocalesInfo();