getLocale() | The Laravel Translator
The getLocale method is used to retrieve the current locale being used by the translator. The method is required by Symfony's TranslatorInterface . 1 <?php 2 3 // Get a `Translator` instance from the application container. 4 $ translator = app ( '...