src/Http/Controllers/JsLocalizationController.php
protected function getMessagesJson()
    {
        $messages = MessageCachingService::getMessagesJson();
        $messages = $this->ensureBackwardsCompatibility($messages);

        $contents  = 'Lang.addMessages(' . $messages . ');';

        return $contents;
    }
protected function getMessagesJson()
    {
        $messages = MessageCachingService::getMessagesJson();
        $messages = $this->ensureBackwardsCompatibility($messages);

        $contents  = 'Lang.addMessages(' . $messages . ');';

        return $contents;
    }
protected function getMessagesJson ( ) { $ messages = MessageCachingService :: getMessagesJson ( ) ; $ messages = $ this -> ensureBackwardsCompatibility ( $ messages ) ; $ contents = 'Lang.addMessages(' . $ messages . ');' ; return $ contents ; }
Get the configured messages from the translation files

@return string
Get the configured messages from the translation files