private function loadMatchingFile($files, $lang) {
        // Check all file names
        foreach ($files as $file) {
            // Extract locale from filename
            $fileLocale = substr($file, 0, strlen($file) - 5);

            if (\Locale::filterMatches($lang, $fileLocale)) { // Check if filename matches $lang
                return array('dict' => $this->loadFile($file), 'lang' => $fileLocale);
            }
        }

        return null;
    }