{"id":51135130,"url":"https://github.com/deseven/catechesis-localization-toolkit","last_synced_at":"2026-06-25T17:01:33.179Z","repository":{"id":366353840,"uuid":"1262021371","full_name":"deseven/catechesis-localization-toolkit","owner":"deseven","description":"A Python tool to create Catechesis localizations","archived":false,"fork":false,"pushed_at":"2026-06-21T11:47:46.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-21T14:25:14.487Z","etag":null,"topics":["catechesis","llm","localization","translation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deseven.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-07T13:21:05.000Z","updated_at":"2026-06-21T11:47:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/deseven/catechesis-localization-toolkit","commit_stats":null,"previous_names":["deseven/catechesis-localization-toolkit"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/deseven/catechesis-localization-toolkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deseven%2Fcatechesis-localization-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deseven%2Fcatechesis-localization-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deseven%2Fcatechesis-localization-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deseven%2Fcatechesis-localization-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deseven","download_url":"https://codeload.github.com/deseven/catechesis-localization-toolkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deseven%2Fcatechesis-localization-toolkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34784113,"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-25T02:00:05.521Z","response_time":101,"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":["catechesis","llm","localization","translation"],"created_at":"2026-06-25T17:01:32.634Z","updated_at":"2026-06-25T17:01:33.174Z","avatar_url":"https://github.com/deseven.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Catechesis Localization Toolkit\n\nA Python tool for managing [Catechesis](https://store.steampowered.com/app/2593320/Catechesis/) localization using Google Sheets as a translation backend and an LLM for machine translation/validation.\n\nThe workflow is the following:\n- parse source files\n- upload to Google Sheets\n- translate with LLM (optional)\n- translate/refine manually, alone or with others\n- validate with LLM (optional)\n- build localized files\n\n## Installation\n\n```bash\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n## Configuration\n\nCopy `.env.example` to `.env` and edit the new file, following the comments inside.\n\n### Google Sheets setup\n\n1. Set up [a service account](https://console.cloud.google.com/) (google \"How to set up service account to access google sheets\" if you're not sure how to do that, [here is one example](https://stackoverflow.com/a/76838253)), save a JSON file with credentials. Don't forget to [enable Google Sheets API](https://support.google.com/googleapi/answer/6158841?hl=en).\n2. Set path to the downloaded JSON file as `GOOGLE_CREDS` in `.env`.\n3. Create a Google Spreadsheet and copy its ID from the URL into `GOOGLE_SPREADSHEET_ID`.\n4. Share the spreadsheet with the service account email (`client_email` in the JSON file).\n\n\n## Usage\n\n```\npython run.py parse              # Parse source files and upload to Google Sheets\npython run.py translate \u003csheet\u003e  # Translate untranslated strings in a sheet using LLM\npython run.py validate \u003csheet\u003e   # Validate translations in a sheet using LLM\npython run.py build              # Download translations and generate localized files\npython run.py help               # Show usage\n```\n\n### parse\n\nScans `SOURCE_DIR` for files matching `*_\u003cSOURCE_LANG\u003e.properties`, parses key-value pairs, and syncs them to Google Sheets. Each file becomes a sheet with three columns: `key`, source language, target language. Existing translations are never overwritten — only new keys are added and changed source values are updated.\n\n### translate `\u003csheet\u003e`\n\nReads untranslated rows from the named sheet and sends them in batches of 100 to the configured LLM. Translations are written back to the target language column. Already-translated rows are skipped.\n\n### validate `\u003csheet\u003e`\n\nSends all translated rows from the named sheet to the LLM for review. The LLM checks for consistency, typos, formatting issues, and style. Results are saved to `validate-\u003csheet\u003e.md`.\n\n### build\n\nDownloads all sheets from Google Sheets and writes `*_\u003cTARGET_LANG\u003e.properties` files to `TARGET_DIR`. Keys without a translation fall back to the source value. If `PACK_LOCALIZATION=true`, all output files are zipped into `catechesis-\u003cTARGET_LANG\u003e.zip`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeseven%2Fcatechesis-localization-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeseven%2Fcatechesis-localization-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeseven%2Fcatechesis-localization-toolkit/lists"}