You are here

public function TranslatorInterface::getLocale in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/TranslatorInterface.php \Symfony\Component\Translation\TranslatorInterface::getLocale()

Returns the current locale.

Return value

string The locale

6 methods override TranslatorInterface::getLocale()
DataCollectorTranslator::getLocale in vendor/symfony/translation/DataCollectorTranslator.php
Returns the current locale.
DefaultTranslator::getLocale in vendor/symfony/validator/DefaultTranslator.php
Returns the locale of the translator.
DrupalTranslator::getLocale in core/lib/Drupal/Core/Validation/DrupalTranslator.php
Returns the current locale.
IdentityTranslator::getLocale in vendor/symfony/translation/IdentityTranslator.php
Returns the current locale.
LoggingTranslator::getLocale in vendor/symfony/translation/LoggingTranslator.php
Returns the current locale.

... See full list

File

vendor/symfony/translation/TranslatorInterface.php, line 64

Class

TranslatorInterface
TranslatorInterface.

Namespace

Symfony\Component\Translation

Code

public function getLocale();