public function getOneLocaleActivity(string $appname):Renderer
    {

        $locale = new AppLocale($appname);
        $localeFormat =  ["app" => $appname, "enabled" => $locale->isEnabled(), "values" => $locale->getValues(),
            "prefered" => $locale->getPrefer(), "transtype" => $locale->getTranstype()];

        return ((new Renderer())->jsonRenderer(array("code" => 200, "results" => $localeFormat)));
    }
public function getOneLocaleActivity(string $appname):Renderer
    {

        $locale = new AppLocale($appname);
        $localeFormat =  ["app" => $appname, "enabled" => $locale->isEnabled(), "values" => $locale->getValues(),
            "prefered" => $locale->getPrefer(), "transtype" => $locale->getTranstype()];

        return ((new Renderer())->jsonRenderer(array("code" => 200, "results" => $localeFormat)));
    }
public function getOneLocaleActivity ( string $ appname ) : Renderer { $ locale = new AppLocale ( $ appname ) ; $ localeFormat = [ "app" => $ appname , "enabled" => $ locale -> isEnabled ( ) , "values" => $ locale -> getValues ( ) , "prefered" => $ locale -> getPrefer ( ) , "transtype" => $ locale -> getTranstype ( ) ] ; return ( ( new Renderer ( ) ) -> jsonRenderer ( array ( "code" => 200 , "results" => $ localeFormat ) ) ) ; }
Get one locale
@param string $appname App name
@return Renderer
@throws \iumioFramework\Core\Exception\Server\Server500
Get one locale