{"id":19338049,"url":"https://github.com/edgetranslate/unified-translators","last_synced_at":"2025-04-23T01:31:13.269Z","repository":{"id":117472848,"uuid":"297037613","full_name":"EdgeTranslate/unified-translators","owner":"EdgeTranslate","description":"Collection of translators with unified interface.","archived":false,"fork":false,"pushed_at":"2020-09-20T14:56:07.000Z","size":148,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T06:25:14.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/EdgeTranslate.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}},"created_at":"2020-09-20T08:56:35.000Z","updated_at":"2022-11-01T00:29:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"900686f3-1338-49a1-af74-239a42621d01","html_url":"https://github.com/EdgeTranslate/unified-translators","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"af4f1bb561891861aeaaaa2e8914baa65e200ecc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdgeTranslate%2Funified-translators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdgeTranslate%2Funified-translators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdgeTranslate%2Funified-translators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdgeTranslate%2Funified-translators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EdgeTranslate","download_url":"https://codeload.github.com/EdgeTranslate/unified-translators/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250352236,"owners_count":21416461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-10T03:16:12.846Z","updated_at":"2025-04-23T01:31:12.960Z","avatar_url":"https://github.com/EdgeTranslate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unified Translators\n\nThis is a collection of translators used in Edge Translate. We open source these translators separately\nfor people who want to build their own translator apps.\n\n### Usage\n\n```javascript\nimport { TRANSLATORS } from \"unified-translators\";\n\n// Using Hybrid translate.\nTRANSLATORS.hybrid.translate(\"hello\", \"en\", \"zh-CN\").then(result =\u003e {\n    console.log(result.mainMeaning);\n});\n\n// Using Bing translate.\nTRANSLATORS.bing.translate(\"hello\", \"en\", \"zh-CN\").then(result =\u003e {\n    console.log(result.mainMeaning);\n});\n\n// Using Google translate.\nTRANSLATORS.google.translate(\"hello\", \"en\", \"zh-CN\").then(result =\u003e {\n    console.log(result.mainMeaning);\n});\n```\n\n### Supported\n\n* Hybrid Translate\n\n  Combine translations from different translators.\n\n* Google Translate\n\n  Translations from [Google Translate](https://translate.google.cn).\n\n* Bing Translate\n\n  Translations from [Bing Translate](https://cn.bing.com/translator).\n\n### To Be Done\n\n* Baidu Translate (supported in Edge Translate)\n\n* Tencent Translate (supported in Edge Translate)\n\n* Youdao Translate\n\n### More Info\n\nPlease refer to [tests](./test/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgetranslate%2Funified-translators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgetranslate%2Funified-translators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgetranslate%2Funified-translators/lists"}