{"id":25188388,"url":"https://github.com/adrenak/unilang","last_synced_at":"2025-05-07T16:21:33.469Z","repository":{"id":117169267,"uuid":"133344042","full_name":"adrenak/UniLang","owner":"adrenak","description":"Translate text from one language to another using Google Translate","archived":false,"fork":false,"pushed_at":"2018-05-14T12:14:13.000Z","size":897,"stargazers_count":37,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T11:51:07.029Z","etag":null,"topics":["language-detection","language-translation-service","unity"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/adrenak.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}},"created_at":"2018-05-14T10:25:57.000Z","updated_at":"2023-12-03T14:59:11.000Z","dependencies_parsed_at":"2024-01-17T05:46:39.054Z","dependency_job_id":"2f893526-0c1c-4a2b-be6a-aa310b36ce7d","html_url":"https://github.com/adrenak/UniLang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrenak%2FUniLang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrenak%2FUniLang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrenak%2FUniLang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrenak%2FUniLang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrenak","download_url":"https://codeload.github.com/adrenak/UniLang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252913062,"owners_count":21824092,"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":["language-detection","language-translation-service","unity"],"created_at":"2025-02-09T20:28:33.296Z","updated_at":"2025-05-07T16:21:33.446Z","avatar_url":"https://github.com/adrenak.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UniLang\nTranslate text from one language to another using Google Translate\n\n# About  \nUniLang uses the Google Translation API to translate between languages. All languages supported by the Google service are supported in UniLang as well\n\n# Classes  \n- `Translator` : A class that takes a source and target language. Exposes the translation feature using `Translator.Run` method, which accepts the text to be translated and returns result as a `List` of `TranslatedTextPair` objects.\n- `TranslatedTextPair` : Pretty much a `Pair\u003cstring, string\u003e` that holds the original and translated texts to report back the translation results.\n- `Language` : Holds the ISO standard codes of the languages for typesafety\n\n# Usage \n```\nTranslator translator = Translator.Create(Language.Auto, Language.French);\ntranslator.Run(\"Text to translate. Can have multiple sentences.\", results =\u003e {\n    foreach (var result in results)\n        Debug.Log(result.original + \" =\u003e \" + result.translated);\n});\n```\n\n# Soon  \n- `Recognizer` : A class that recognizes the language given to it.\n- Ability to translate several passages of text at once\n\n# Contact  \n[@www](http://www.vatsalambastha.com)  \n[@github](https://www.github.com/adrenak)  \n[@twitter](https://www.twitter.com/adrenak)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrenak%2Funilang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrenak%2Funilang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrenak%2Funilang/lists"}