{"id":20496750,"url":"https://github.com/lordpax/translate","last_synced_at":"2025-04-13T18:21:37.201Z","repository":{"id":91358720,"uuid":"541213575","full_name":"LordPax/translate","owner":"LordPax","description":"translate a text with deepl","archived":false,"fork":false,"pushed_at":"2024-03-25T14:27:15.000Z","size":41,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T09:05:23.755Z","etag":null,"topics":["cli","deepl","translation"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LordPax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-09-25T15:18:22.000Z","updated_at":"2025-03-12T07:03:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf45de83-4cbe-44b2-9690-7fb76208da0d","html_url":"https://github.com/LordPax/translate","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/LordPax%2Ftranslate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordPax%2Ftranslate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordPax%2Ftranslate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordPax%2Ftranslate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LordPax","download_url":"https://codeload.github.com/LordPax/translate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248759088,"owners_count":21157088,"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":["cli","deepl","translation"],"created_at":"2024-11-15T18:08:36.400Z","updated_at":"2025-04-13T18:21:37.176Z","avatar_url":"https://github.com/LordPax.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Translate\n\n## Description\n\nTranslate text with deepl\n\n## Required Dependencies\n\n-   `jq`\n-   `curl`\n\n## Available engine\n\n-   [deepl](https://www.deepl.com)\n-   [libre](https://github.com/LibreTranslate/LibreTranslate)\n-   [google](https://cloud.google.com/translate) (not implemented yet)\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/LordPax/translate.git\ncd translate\n```\n\n2. Execute the script to generate config file in `.config/translate`\n\n```bash\n./translate\n```\n\n3. Create dotenv file `~/.config/translate/config` with your needed information like api key\n\n```bash\nUSED_ENGINE=deepl\nDEEPL_ROUTE=https://api-free.deepl.com/v2/translate\nDEEPL_KEY=mandatory if you use deepl\nLIBRE_ROUTE_DETECT=localhost:5000/detect\nLIBRE_ROUTE=localhost:5000/translate\nLIBRE_KEY=not mandatory if route is on localhost\n```\n\n## Usage\n\n```\nUsage : translate \u003coption\u003e [text]\n\nOption :\n-h or --help ........................... Show help\n-v or --version ........................ Show version\n-e or --engine \u003cengine\u003e ................ Set engine (default : deepl)\n-s \u003clang\u003e .............................. Source language\n-t \u003clang\u003e .............................. Target language\n\nEngine :\n* deepl\n* libre\n\nExample :\ntranslate -t fr \"Hello World!\"\necho \"Hello World!\" | translate -t fr\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordpax%2Ftranslate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flordpax%2Ftranslate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordpax%2Ftranslate/lists"}