LocaleTranslation::$translations

Same name in other branches
  1. 9 core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::translations
  2. 10 core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::translations
  3. 11.x core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::translations

Cached translations.

Array of \Drupal\locale\LocaleLookup objects indexed by language code and context.

Type: array

File

core/modules/locale/src/LocaleTranslation.php, line 46

Class

LocaleTranslation
String translator using the locale module.

Namespace

Drupal\locale

Code

protected $translations = [];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.