{"id":19987518,"url":"https://github.com/waithawoo/node-googleapi-translate","last_synced_at":"2026-06-14T07:31:19.497Z","repository":{"id":176021174,"uuid":"653750346","full_name":"waithawoo/node-googleapi-translate","owner":"waithawoo","description":"To translate languages with Google Translation API V2","archived":false,"fork":false,"pushed_at":"2023-06-17T07:29:59.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-11T19:57:29.484Z","etag":null,"topics":["google","google-translate","google-translate-api","google-translator","translate","translate-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waithawoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-14T16:48:24.000Z","updated_at":"2023-06-21T03:39:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d8a0ec2-8470-40ec-a34d-464be9fe7411","html_url":"https://github.com/waithawoo/node-googleapi-translate","commit_stats":null,"previous_names":["waithawoo/node-googleapi-translate"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/waithawoo/node-googleapi-translate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waithawoo%2Fnode-googleapi-translate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waithawoo%2Fnode-googleapi-translate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waithawoo%2Fnode-googleapi-translate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waithawoo%2Fnode-googleapi-translate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waithawoo","download_url":"https://codeload.github.com/waithawoo/node-googleapi-translate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waithawoo%2Fnode-googleapi-translate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34313515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google","google-translate","google-translate-api","google-translator","translate","translate-api"],"created_at":"2024-11-13T04:36:51.016Z","updated_at":"2026-06-14T07:31:19.481Z","avatar_url":"https://github.com/waithawoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node Google API Translation\n\n## To translate languages with Google Translation API V2\n\n- **[Installation](#installation)**\n- **[Usage](#usage)**\n\n## Installation\nInstall this package via [npm](https://npmjs.com/).\n\n```\nnpm install googleapi-translate\n```\n\n## Usage\n- import the package and create a new object by passing token \n```\nlet googleApi = require(\"googleapi-translate\")\n\nlet googleTranslation = new googleApi({token: 'this is token'})\n```\n- default hostname is ''translation.googleapis.com'' and you can also pass hostname like this :\n```\nlet googleTranslation = new googleApi({token: 'this is token', hostname: 'this is hostname'})\n```\n### Translate\n```\ngoogleTranslation.translate(\"hello\", \"en\", \"ja\").then((res)=\u003e{\n    console.log(res);\n})\n```\n\n### Detect the language\n```\ngoogleTranslation.detect(\"hello\").then((res)=\u003e{\n    console.log(res);\n})\n```\n### Get supported languages\n```\ngoogleTranslation.getLanguages().then((res)=\u003e{\n    console.log(res);\n})\n```\n## Security\n\nIf you discover any security related issues, please email them to [waithawoocw@gmail.com](mailto:waithawoocw@gmail.com) instead of using the issue tracker.\n\n## License\n\nThe MIT License (MIT). Please see the [License File](LICENSE) for more information.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaithawoo%2Fnode-googleapi-translate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaithawoo%2Fnode-googleapi-translate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaithawoo%2Fnode-googleapi-translate/lists"}