Google_LanguagesServiceResource
The "languages" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /src/contrib/Google_TranslateService.php
- class Google_LanguagesServiceResource extends Google_ServiceResource {
- /**
- * List the source/target languages supported by the API (languages.list)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param string target the language and collation in which the localized results should be returned
- * @return Google_LanguagesListResponse
- */
- public function listLanguages($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_LanguagesListResponse($data);
- } else {
- return $data;
- }
- }
- }