Projects
class Projects extends Resource (View source)
The "projects" collection of methods.
Typical usage is:
$translateService = new Google\Service\Translate(...);
$projects = $translateService->projects;
Methods
detectLanguage(string $parent, DetectLanguageRequest $postBody, array $optParams = [])
Detects the language of text within a request. (projects.detectLanguage)
getSupportedLanguages(string $parent, array $optParams = [])
Returns a list of supported languages for translation.
romanizeText(string $parent, RomanizeTextRequest $postBody, array $optParams = [])
Romanize input text written in non-Latin scripts to Latin text.
translateText(string $parent, TranslateTextRequest $postBody, array $optParams = [])
Translates input text and returns translated text. (projects.translateText)
Details
DetectLanguageResponse
detectLanguage(string $parent, DetectLanguageRequest $postBody, array $optParams = [])
Detects the language of text within a request. (projects.detectLanguage)
SupportedLanguages
getSupportedLanguages(string $parent, array $optParams = [])
Returns a list of supported languages for translation.
(projects.getSupportedLanguages)
RomanizeTextResponse
romanizeText(string $parent, RomanizeTextRequest $postBody, array $optParams = [])
Romanize input text written in non-Latin scripts to Latin text.
(projects.romanizeText)
TranslateTextResponse
translateText(string $parent, TranslateTextRequest $postBody, array $optParams = [])
Translates input text and returns translated text. (projects.translateText)