{"id":31691206,"url":"https://github.com/sarumaj/unbabelizer","last_synced_at":"2026-04-02T13:27:45.352Z","repository":{"id":317279400,"uuid":"1065925679","full_name":"sarumaj/unbabelizer","owner":"sarumaj","description":"Unbabelizer is an interactive CLI for creating, editing and compiling *.po translation files.","archived":false,"fork":false,"pushed_at":"2026-03-25T10:49:51.000Z","size":680,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-26T13:35:44.361Z","etag":null,"topics":["babel","gettext","i18n","internationalization","python3","tui","tui-app"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/unbabelizer/","language":"Python","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/sarumaj.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["sarumaj"],"tidelift":"pypi/unbabelizer","custom":["paypal.me/danviddo"],"buy_me_a_coffee":"sarumaj"}},"created_at":"2025-09-28T17:50:40.000Z","updated_at":"2026-03-25T10:49:54.000Z","dependencies_parsed_at":"2025-09-30T00:25:54.200Z","dependency_job_id":"09fb162b-a6f4-4885-9b56-2eeee9f428e9","html_url":"https://github.com/sarumaj/unbabelizer","commit_stats":null,"previous_names":["sarumaj/babylizer"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/sarumaj/unbabelizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarumaj%2Funbabelizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarumaj%2Funbabelizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarumaj%2Funbabelizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarumaj%2Funbabelizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sarumaj","download_url":"https://codeload.github.com/sarumaj/unbabelizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarumaj%2Funbabelizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31307075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["babel","gettext","i18n","internationalization","python3","tui","tui-app"],"created_at":"2025-10-08T13:19:10.379Z","updated_at":"2026-04-02T13:27:45.346Z","avatar_url":"https://github.com/sarumaj.png","language":"Python","funding_links":["https://github.com/sponsors/sarumaj","https://tidelift.com/funding/github/pypi/unbabelizer","paypal.me/danviddo","https://buymeacoffee.com/sarumaj"],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable MD041 --\u003e\n\n[![release](https://github.com/sarumaj/unbabelizer/actions/workflows/release.yml/badge.svg)](https://github.com/sarumaj/unbabelizer/actions/workflows/release.yml)\n[![GitHub Release](https://img.shields.io/github/v/release/sarumaj/unbabelizer?logo=github)](https://github.com/sarumaj/unbabelizer/releases/latest)\n[![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/sarumaj/unbabelizer)](https://github.com/sarumaj/unbabelizer/blob/main/pyproject.toml)\n\n---\n\n\u003c!-- markdownlint-enable MD041 --\u003e\n\n# unbabelizer\n\n`unbabelizer` is an interactive CLI and TUI (Text User Interface) tool for\nmanaging gettext `.po` translation files.\nIt streamlines the localization workflow for Python projects by automating\nextraction, translation, review, and compilation of translation files.\n\nRead 👉 [Medium Blog Article](https://medium.com/stackademic/from-the-chaos-of-babel-to-app-translation-bliss-5afba78fc774) 👈 to learn more.\n\n## Purpose\n\nThe main goal of `unbabelizer` is to simplify and automate the process of\ninternationalizing Python applications.\nIt provides a guided interface for developers and translators to:\n\n- Extract translatable strings from source code using `babel`.\n- Automatically translate `.po` files using translation services.\n- Review and edit translations interactively.\n- Compile `.po` files into binary `.mo` files for deployment.\n- Manage multiple languages and domains with ease.\n- Integrate seamlessly with Babel and polib for robust gettext support.\n\nSupported translation services:\n\n- Google Translate\n- Microsoft Translator\n- Yandex Translator\n- ChatGPT Translation Service\n- MyMemory Translator\n- Deepl Translator\n\n## Demo\n\n[![ascii cast](https://asciinema.org/a/JWMSteKuWEp2UBCQJGCbrBdxr.svg)](https://asciinema.org/a/JWMSteKuWEp2UBCQJGCbrBdxr)\n\nThe app is itself available in German language. Simply run\n\n```shell\nLANG=de unbabelizer\n```\n\nto execute the app in German language.\n\n## Features\n\n- **Interactive TUI:** Edit and review translations in a modern terminal UI\n  powered by [Textual](https://github.com/Textualize/textual).\n- **Automated Extraction:** Find and extract translatable strings from your\n  codebase using Babel.\n- **Batch Translation:** Translate `.po` files automatically via Google Translate,\n  with support for multiple target languages.\n- **Review Workflow:** Step through translations, edit entries, and mark reviewed\n  items.\n- **Compilation:** Compile `.po` files to `.mo` for production use.\n- **Configurable:** Control all aspects via `pyproject.toml` or CLI arguments.\n- **Exclusion Patterns:** Skip files or directories using glob patterns.\n- **Custom Mapping:** Provide custom Babel mapping for source file types.\n- **Logging:** Detailed logging for troubleshooting and auditing translation changes.\n\n## Installation\n\nYou can install the package via pip:\n\n```shell\npip install unbabelizer\n```\n\n## Usage\n\nExecute in a directory with a `pyproject.toml` config file:\n\n```shell\nunbabelizer\n```\n\nThe configuration section in `pyproject.toml` might look as follows:\n\n```toml\n[tool.unbabelizer]\n# List of destination languages (e.g., German)\ndest_lang = [\"de\"]\n\n# Paths to search for source files\ninput_paths = [\"src\"]\n\n# Directory for locale files\nlocale_dir = \"src/unbabelizer/locales\"\n\n# Source language code\nsrc_lang = \"en\"\n\n# Domain for the .po files (default: \"messages\")\ndomain = \"messages\"\n\n# Patterns to exclude from searching (optional)\nexclude_patterns = [\"tests/*\", \"docs/*\"]\n\n# Content of the Babel mapping file (optional)\nmapping_file_content = \"\"\"\n[python: **.py]\nencoding = utf-8\n\"\"\"\n\n# Line width for .po files (optional, default: 120)\nline_width = 120\n\n# Translation service specific settings\napi_key = \"\u003cmy-api-key\u003e\"\napi_key_type = \"\u003cfree or paid\u003e\"\nmodel = \"gpt-3.5-turbo\"\nhttp_proxy = \"http://\u003cmy-proxy\u003e\"\nhttps_proxy = \"https://\u003cmy-proxy\u003e\"\n```\n\nYou can also override these settings using CLI arguments:\n\n```shell\nunbabelizer \\\n  --dest-lang de \\\n  --input-paths src \\\n  --locale-dir src/unbabelizer/locales \\\n  --src-lang en \\\n  --domain messages \\\n  --exclude-patterns tests/* docs/* \\\n  --mapping-file \"~/mapping_file.txt\" \\\n  --line-width 120\n```\n\n- `--dest-lang`: Destination language(s) (repeat or use multiple values)\n- `--input-paths`: Source file paths (repeat or use multiple values)\n- `--locale-dir`: Locale directory\n- `--src-lang`: Source language code\n- `--domain`: .po file domain\n- `--exclude-patterns`: Patterns to exclude (optional)\n- `--mapping-file`: Babel mapping file (optional)\n- `--line-width`: Line width for .po files (optional)\n\nRun `unbabelizer --help` to see all available options.\n\nSettings from the CLI override those in `pyproject.toml`.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarumaj%2Funbabelizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarumaj%2Funbabelizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarumaj%2Funbabelizer/lists"}