public function changeStatusLocalAppActivity(string $appname, string $status)
    {
        if ("enabled" === $status) {
            $locale = new AppLocale($appname);
            $locale->setEnabled(true);
            $locale->apply();
            unset($locale);
            $locale = new AppLocale($appname);
            if ($locale->isEnabled()) {
                return ((new Renderer())->jsonRenderer(array("code" => 200, "msg" => "OK")));
            } else {
                return ((new Renderer())->jsonRenderer(array("code" => 500,
                    "results" => "Cannot enabled app locale for $appname")));
            }
        } elseif ("disabled" === $status) {
            $locale = new AppLocale($appname);
            $locale->setEnabled(false);
            $locale->apply();
            unset($locale);
            $locale = new AppLocale($appname);
            if (false === $locale->isEnabled()) {
                return ((new Renderer())->jsonRenderer(array("code" => 200, "msg" => "OK")));
            } else {
                return ((new Renderer())->jsonRenderer(array("code" => 500,
                    "results" => "Cannot disabled app locale for $appname")));
            }
        }
        return ((new Renderer())->jsonRenderer(array("code" => 500,
            "results" => "Undefined locale status $status")));
    }