public function translate($text, $to, $from = null, $contentType = 'text/plain', $category = 'general')
    {
        $query_parameters = [
            'text'        => $text,
            'to'          => $to,
            'contentType' => $contentType,
            'category'    => $category,
        ];

        if (! is_null($from)) {
            $query_parameters['from'] = $from;
        }

        return $this->get('/Translate', [], $query_parameters);
    }