DrupalTranslator::$locale

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Validation/DrupalTranslator.php \Drupal\Core\Validation\DrupalTranslator::locale
  2. 10 core/lib/Drupal/Core/Validation/DrupalTranslator.php \Drupal\Core\Validation\DrupalTranslator::locale
  3. 11.x core/lib/Drupal/Core/Validation/DrupalTranslator.php \Drupal\Core\Validation\DrupalTranslator::locale

The locale used for translating.

Type: string

File

core/lib/Drupal/Core/Validation/DrupalTranslator.php, line 20

Class

DrupalTranslator
Translates strings using Drupal's translation system.

Namespace

Drupal\Core\Validation

Code

protected $locale;

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