{"id":23185997,"url":"https://github.com/kkinos/dt","last_synced_at":"2025-04-05T04:44:36.763Z","repository":{"id":57637804,"uuid":"420375270","full_name":"kkinos/dt","owner":"kkinos","description":"A simple command line application to translate with DeepL API.","archived":false,"fork":false,"pushed_at":"2023-02-25T06:57:24.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T12:43:28.117Z","etag":null,"topics":["cli","deepl","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/kkinos.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}},"created_at":"2021-10-23T10:00:36.000Z","updated_at":"2023-02-25T07:09:22.000Z","dependencies_parsed_at":"2024-02-19T11:50:52.466Z","dependency_job_id":null,"html_url":"https://github.com/kkinos/dt","commit_stats":null,"previous_names":["kkinos/dt","kinpoko/dt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkinos%2Fdt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkinos%2Fdt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkinos%2Fdt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkinos%2Fdt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkinos","download_url":"https://codeload.github.com/kkinos/dt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289399,"owners_count":20914464,"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","go","golang"],"created_at":"2024-12-18T10:14:03.515Z","updated_at":"2025-04-05T04:44:36.736Z","avatar_url":"https://github.com/kkinos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dt (DeepL Translation)\n\n[![Go](https://github.com/kinpoko/dt/actions/workflows/go.yml/badge.svg)](https://github.com/kinpoko/dt/actions/workflows/go.yml)\n![License](https://img.shields.io/github/license/kinpoko/dt?color=blue)\n\nA simple command line application to translate with DeepL API.\n\nThis application only supports DeepL API Free, and does not currently support other APIs.\n\n## Installing\n\n```bash\ngo install github.com/kinpoko/dt@latest\n```\n\n## Usage\n\n1. Obtain an authentication key for the DeepL API. For information on how to obtain an authentication key, please see the [official documentation](https://www.deepl.com/ja/docs-api/).\n2. Set the authentication key as an environment variable named `DEEPL_TOKEN`.\n\n`.bashrc`\n\n```bash\nexport DEEPL_TOKEN=\u003cauthentication key\u003e\n```\n\n3. Translate text using the following command:\n\n```bash\ndt Hello World\nハロー・ワールド\n```\n\nUse the `-h` flag to view the help menu and command line options:\n\n```bash\ndt -h\nA simple command line application to translate with deepl API.\n\nUsage:\n  dt [text] [flags]\n\nFlags:\n  -h, --help            help for dt\n  -s, --source string   source language   (default \"en\")\n  -t, --target string   target language   (default \"ja\")\n```\n\n## Using Pipe\n\nYou can use `dt` with other command line utilities by piping text to the application. For example, to translate the contents of a file named text.txt, you can use the following command:\n\n```bash\ncat text.txt | xargs dt\n```\n\nThis will translate the text in the `text.txt` file and output the resulting translation to the command line.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkinos%2Fdt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkinos%2Fdt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkinos%2Fdt/lists"}