src/Language/Translator.php
public function getTranslation($locale) {
        if (!isset($this->translations[$locale])) {
            $this->translations[$locale] = $this->getFileTranslations($locale, $this->translatePath);
        }
        return $this->translations[$locale];
    }
public function getTranslation($locale) {
        if (!isset($this->translations[$locale])) {
            $this->translations[$locale] = $this->getFileTranslations($locale, $this->translatePath);
        }
        return $this->translations[$locale];
    }
Returns the list of translations.

@param string $locale
@return array|null