{"id":20051933,"url":"https://github.com/sixem/srt-translate","last_synced_at":"2025-08-09T07:18:44.094Z","repository":{"id":57702385,"uuid":"509481250","full_name":"sixem/srt-translate","owner":"sixem","description":"A package that translates .srt files using Google Cloud Translate.","archived":false,"fork":false,"pushed_at":"2022-07-03T04:02:13.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T00:35:19.834Z","etag":null,"topics":["api","cloud","google","srt","srt-translate","translate"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/srt-translate","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/sixem.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}},"created_at":"2022-07-01T14:17:24.000Z","updated_at":"2022-07-01T20:17:52.000Z","dependencies_parsed_at":"2022-09-26T21:11:17.717Z","dependency_job_id":null,"html_url":"https://github.com/sixem/srt-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/sixem%2Fsrt-translate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixem%2Fsrt-translate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixem%2Fsrt-translate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixem%2Fsrt-translate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sixem","download_url":"https://codeload.github.com/sixem/srt-translate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241482031,"owners_count":19969847,"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":["api","cloud","google","srt","srt-translate","translate"],"created_at":"2024-11-13T12:08:33.210Z","updated_at":"2025-03-02T08:42:59.707Z","avatar_url":"https://github.com/sixem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003esrt-translate\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eA package that translates .srt files using Google Cloud Translate.\u003c/p\u003e\n\n# Usage\n\n## Command Line (CLI):\n\n#### Install the package globally:\n```bash\nsudo npm install -g srt-translate\n```\n#### Usage:\n```bash\nsrt-translate --key \"one-drive-000000-00000x00xxxx.json\" --input source.srt --output output.srt --target en\n```\n\n## Node:\n#### Install the package:\n```bash\nsudo npm install srt-translate\n```\n\n#### Usage:\n```js\n/* Import the package */\nimport srtTranslate from 'srt-translate';\n\n/* Create a class instance */\nlet translate = new srtTranslate({\n    key: 'one-drive-000000-00000x00xxxx.json',\n    input: 'source.srt',\n    output: 'output.srt',\n    target: 'en'\n});\n\n/* Initialize the translation */\ntranslate.init();\n```\n\n\n# Options\n\n| Option | Required | Default | Description |\n|:-------------|:-------------:|:-------------:|-------------|\n| `key` | :heavy_check_mark: | `None` | Your Google Cloud API JSON file. See [Google's Setup Page](https://cloud.google.com/translate/docs/setup) for more information.\n| `input` | :heavy_check_mark: | `None` | Your `.srt` input file.\n| `output` | :heavy_check_mark: | `None` | Your `.srt` output destination.\n| `target` | :heavy_check_mark: | `None` | Target language (`en`, `ru` and so on). See [language support](https://cloud.google.com/translate/docs/languages) for more information.\n| `delay` | :x: | `200` | Delay between requests made to Google Translate.\n| `silent` | :x: | `False` | Disables the printing of translated lines.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixem%2Fsrt-translate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixem%2Fsrt-translate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixem%2Fsrt-translate/lists"}