src/PeskyCMF/ApiDocs/CmfApiMethodDocumentation.php
protected function translateArrayValues(array $array) {
        foreach ($array as &$value) {
            if (is_string($value)) {
                $value = $this->translate($value);
            } else if (is_array($value)) {
                $value = $this->translateArrayValues($value);
            }
        }
        return $array;
    }
protected function translateArrayValues(array $array) {
        foreach ($array as &$value) {
            if (is_string($value)) {
                $value = $this->translate($value);
            } else if (is_array($value)) {
                $value = $this->translateArrayValues($value);
            }
        }
        return $array;
    }
Translate values of the $array recursively
@param array $array
@return array