{"id":19228059,"url":"https://github.com/thefilesareinthecomputer/offline_file_translation","last_synced_at":"2026-06-15T06:01:59.764Z","repository":{"id":219662455,"uuid":"749582659","full_name":"thefilesareinthecomputer/offline_file_translation","owner":"thefilesareinthecomputer","description":"Text file language translation app that translates .txt, .csv, and .xlsx files on the local device using lightweight, open-source LLMs from Hugging Face (no internet connection needed). Uses batch processing and token chunking which provides the ability to translate large file sizes while preserving semantic meaning across paragraphs / sections.","archived":false,"fork":false,"pushed_at":"2024-09-28T16:37:17.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T10:29:39.674Z","etag":null,"topics":["ai","language","llm","nlp","open-source","text-processing","transformers","transformers-library","translation","translation-model"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thefilesareinthecomputer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-29T00:58:41.000Z","updated_at":"2025-02-15T04:04:04.000Z","dependencies_parsed_at":"2024-11-09T15:28:18.260Z","dependency_job_id":"8028a143-008b-4197-adec-8f415b740931","html_url":"https://github.com/thefilesareinthecomputer/offline_file_translation","commit_stats":null,"previous_names":["thefilesareinthecomputer/offline_file_translation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thefilesareinthecomputer/offline_file_translation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefilesareinthecomputer%2Foffline_file_translation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefilesareinthecomputer%2Foffline_file_translation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefilesareinthecomputer%2Foffline_file_translation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefilesareinthecomputer%2Foffline_file_translation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thefilesareinthecomputer","download_url":"https://codeload.github.com/thefilesareinthecomputer/offline_file_translation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefilesareinthecomputer%2Foffline_file_translation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34349928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ai","language","llm","nlp","open-source","text-processing","transformers","transformers-library","translation","translation-model"],"created_at":"2024-11-09T15:26:36.957Z","updated_at":"2026-06-15T06:01:59.738Z","avatar_url":"https://github.com/thefilesareinthecomputer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Text File Translation App\n\n## Capabilities\n- Translates text files from one language to another using Helsinki-NLP's OPUS-MT models from Hugging Face.\n- Supports multiple file formats: .txt, .csv, .xlsx.\n- Batch processing for handling large volumes of text.\n- Token chunking for efficient translation of lengthy text while avoiding memory issues.\n\n## Usage\n- Place your text file in an accessible location.\n- Select the desired source and target languages from the lists in the UI.\n- Select the file you want to translate in the UI file explorer window.\n- The translated file will be saved alongside the original, with the file name appended with the target language.\n\n## Benefits\n- Flexibility: Works with multiple languages.\n- Privacy: Performs translations locally and offline, ensuring data privacy.\n- Convenience: Easy to set up and run, making translations hassle-free.\n\n## Specifications\n- Language Support: Dependent on available Helsinki-NLP/OPUS-MT models.\n- File Format Support: Text (.txt), Comma-Separated Values (.csv), and Excel (.xlsx).\n- Dependencies: Python, pandas, torch, transformers, tqdm, openpyxl, pyinstaller.\n\n## Installation \u0026 Setup\n- Ensure Python 3.11+ is installed, then:\n- Clone the github repo from: https://github.com/thefilesareinthecomputer/offline_file_translation\n- Set up a virtual environment and install the required dependencies:\n```bash\ngit clone {REPO_URL} {REPO_FOLDER}\n\ncd {REPO_FOLDER}\n\npython3.11 -m venv {VENV_NAME}\n\nsource {VENV_NAME}/bin/activate\n \npip install --upgrade pip pip-check-reqs wheel python-dotenv\n\npip install -r requirements.txt\n\npip install {ADDITIONAL_PACKAGES}\n\npip freeze \u003e requirements.txt\n\necho \"{VENV_NAME}/\n_archive/\n_notes/\n_notes.txt\ngenerated_data/\nvenv/\n__pycache__/\n*.pyc\n*/migrations/*\ndb.sqlite3\n.env\nstaticfiles/\" \u003e .gitignore\n\ncat .gitignore\n\ngit init\n\ngit add .\n\ngit commit -m \"Initial commit\"\n\noptionally, set a remote repository and push the new code to it\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthefilesareinthecomputer%2Foffline_file_translation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthefilesareinthecomputer%2Foffline_file_translation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthefilesareinthecomputer%2Foffline_file_translation/lists"}