public static function loadLabels()
{
if (!self::$_labels) {
$language = self::getLanguage();
$path = Path::join(ROOT_PATH, 'locales', $language . '.php');
if (!Files::exists($path)) {
throw new Exception('Cannot find declared language file: ' . $language);
}
/** @noinspection PhpIncludeInspection */
self::$_labels = (require $path);
}
return self::$_labels;
}