public static function localGetPart(string $appname, array $webroutes, string $stringwebroute):?array
    {
        if (true === Locale::isEnabled()) {
            $lapp = new AppLocale($appname);
            if (true === $lapp->isEnabled()) {
                foreach ($lapp->getValues() as $one) {
                    $comp = $webroutes[0] ?? null;
                    if (true === is_object($one)) {
                        foreach ((array)$one as $second) {
                            if ($comp === $second) {
                                array_unshift($webroutes, $second);
                                $webroutes = array_values(array_diff($webroutes, array($second)));
                                $stringwebroute = str_replace("/$second/", "/", $stringwebroute);
                                return (["locale" => $second, "object" => $lapp,
                                    "full_webroute" => $stringwebroute, "array_webroute" => $webroutes]);
                            }
                        }
                    } elseif ($one === $comp) {
                        $webroutes = array_values(array_diff($webroutes, array($comp)));
                        $stringwebroute = str_replace("/$comp/", "/", $stringwebroute);
                        return (["locale" => $one, "object" => $lapp,
                            "full_webroute" => $stringwebroute, "array_webroute" => $webroutes]);
                    }
                }
            }
        }
        return (null);
    }