protected function load(string $index): ?array
    {
        $file = root . '/I18n/' . env_name . '/' . App::$Request->getLanguage() . '/' . $index . '.php';
        if (!File::exist($file)) {
            return [];
        }

        return require($file);
    }
protected function load(string $index): ?array
    {
        $file = root . '/I18n/' . env_name . '/' . App::$Request->getLanguage() . '/' . $index . '.php';
        if (!File::exist($file)) {
            return [];
        }

        return require($file);
    }
protected function load ( string $ index ) : ? array { $ file = root . '/I18n/' . env_name . '/' . App :: $ Request -> getLanguage ( ) . '/' . $ index . '.php' ; if ( ! File :: exist ( $ file ) ) { return [ ] ; } return require ( $ file ) ; }
Load locale file from local storage
@param string $index
@return array|null
Load locale file from local storage