{"id":15394199,"url":"https://github.com/xyproto/translate","last_synced_at":"2025-10-17T00:52:24.121Z","repository":{"id":219837991,"uuid":"749357218","full_name":"xyproto/translate","owner":"xyproto","description":"Transate text from stdin to the current locale using ollama and mixtral:instruct","archived":false,"fork":false,"pushed_at":"2024-08-21T14:22:27.000Z","size":91,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T03:02:36.635Z","etag":null,"topics":["command-line","go","llm","mixtral","ollama","translate","translation","utility"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyproto.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":"2024-01-28T10:51:34.000Z","updated_at":"2024-08-21T14:22:36.000Z","dependencies_parsed_at":"2024-10-19T02:05:51.349Z","dependency_job_id":"3d604bae-ec9a-403f-9acc-bec120b072f4","html_url":"https://github.com/xyproto/translate","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.19999999999999996","last_synced_commit":"350d6d7d27f61b5bc381d78a3a376031f1aa4c5e"},"previous_names":["xyproto/translate"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Ftranslate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Ftranslate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Ftranslate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Ftranslate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyproto","download_url":"https://codeload.github.com/xyproto/translate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173061,"owners_count":21224481,"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":["command-line","go","llm","mixtral","ollama","translate","translation","utility"],"created_at":"2024-10-01T15:22:17.650Z","updated_at":"2025-10-17T00:52:19.069Z","avatar_url":"https://github.com/xyproto.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# translate\n\nTransate text from `stdin` to the current locale using `ollama` and `mixtral:instruct`.\n\n`mixtral:instruct` (around 26 GiB) will be downloaded the first time the utility is being run.\n\nRequires `ollama` to be set up and serving on port `11434`.\n\nThe translation takes a cuple of seconds up to several minutes, and is not terribly exact. But, it is a pretty versatile tool.\n\n`ollama` and `translate` does not require an internet connection once `mixtral:instruct` has been downloaded.\n\n## Quick installation\n\nFor installing the latest version of `translate` into `~/go/bin`:\n\n    go install github.com/xyproto/translate@latest\n\nAdd `~/go/bin` to the `PATH` if needed:\n\n    export PATH=\"$HOME/go/bin:$PATH\"\n\n## Example use\n\n`LANG` is set to `nb_NO.UTF-8`\n\n```\n$ echo 'I can speak Norwegian!' | translate\nJeg kan snakke norsk!\n```\n\nTranslate \"hello\" to the current locale if no text is given on `stdin`:\n\n```\n$ translate\nhei\n```\n\n`LANG` is explicitly set to `de_DE`:\n\n```\n$ echo 'I can speak German!' | LANG=de_DE translate\nIch kann Deutsch sprechen!\n```\n\n`LANG` is explicitly set to `de_DE` and verbose output is enabled with `-v`:\n\n```\n$ echo 'I can speak German!' | LANG=de_DE translate -v\nPrompt: Translate the following text to the locale de_DE (and only output the translated text): I can speak German!\nSending request to /api/tags\nSending request to /api/generate: {\"model\":\"mixtral:instruct\",\"prompt\":\"Translate the following text to the locale de_DE (and only output the translated text): I can speak German!\"}\nIch kann Deutsch sprechen!\n```\n\n## General info\n\n* Version: 1.1.3\n* License: BSD-3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Ftranslate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyproto%2Ftranslate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Ftranslate/lists"}