qmetrics.net

Googletrans

Unofficial Python client for Google Translate web APIs

Googletrans has had no code changes for over 18 months (last commit 1 year ago).

Googletrans screenshot

Googletrans is a Python library that calls Google Translate’s Ajax API for detect and translate operations. It is unofficial and not affiliated with Google.

Overview

Googletrans wraps Google’s translate web endpoints so Python programs can translate text and detect languages without using Google’s paid Cloud Translation API. It targets the same servers as the public translate website and supports automatic source-language detection when none is supplied.

Features include bulk translation of string lists in one session, optional async usage, configurable translate host URLs, proxy support, type hints, and HTTP/2 through httpx. A command-line translate utility is included for quick translations from the shell.

The library generates access tokens by reverse engineering the web client; Google may block this approach at any time, and stability is not guaranteed. Documentation notes a per-text character limit and recommends Google’s official translate API when reliability matters.

Users can point Translator at translate.googleapis.com for a token-free API style endpoint. HTTP 5xx or specific error codes may indicate an IP ban from Google’s side.

Key features

  • Translate and detect methods
  • Bulk translation in one session
  • Async Translator context manager
  • Customizable service URL list
  • HTTP/2 via httpx
  • Proxy and timeout options
  • CLI translate command

Use cases

  • Quick scripts translating short text
  • Batch translation of string lists
  • Language detection in pipelines
  • Prototyping before official APIs
  • Command-line translation checks

Similar software

github-chinese

Userscript localization of the GitHub web interface

GitHub 中文化插件 translates GitHub’s English UI into Chinese using a maintained dictionary and regex rules. It runs as a browser userscript with optional machine translation for repository descriptions.

  • Chinese UI translation for GitHub pages
  • Regex and per-page dictionary matching
  • Repository description machine translation
JavaScriptAndroid, Browser extensionDetails →
★ 39.9k⟳ 4 days agoGPL-3.0

i18next

JavaScript internationalization and translation framework

i18next loads and applies translation files in browser, Node.js, and Deno apps. It handles plurals, context, nesting, variables, backends, caching, and language detection.

  • Runtime and build-time translation
  • Plural and context rules
  • Backend translation loading
JavaScriptWeb, CLIDetails →
★ 8.7k⟳ todayMIT

Argos Translate

Open-source offline neural machine translation for Python

Argos Translate is a Python library for offline translation using installable language model packages.

  • Offline Python translation API
  • Installable .argosmodel language packages
  • Command-line translation interface
PythonLinux, Windows, CLIDetails →
★ 6.7k⟳ 6 days agoMIT · open core

JS Lingui

Compile-time i18n macros for JavaScript and TypeScript

Lingui is a lightweight internationalization library with compile-time macros and a CLI. It targets React, React Native, Vue, SolidJS, Astro, Svelte, and plain Node with PO catalog extraction.

  • Compile-time Trans macros for UI text
  • CLI extract and compile PO catalogs
  • React, Vue, Solid, and React Native packages
TypeScriptCLIDetails →
★ 5.9k⟳ 15 days agoMIT

Python Pinyin

Chinese hanzi to pinyin conversion library

python-pinyin (pypinyin) converts Chinese characters to phonetic pinyin for notation, sorting, and search. It handles heteronyms and multiple romanization styles.

  • Phrase-aware pinyin mapping
  • Heteronym support
  • Multiple romanization styles
PythonDetails →
★ 5.4k⟳ 1 month agoMIT

Globalize

CLDR-based JavaScript internationalization library

Globalize formats and parses numbers, dates, and messages using official Unicode CLDR JSON data. It runs in browsers and as a Node.js module with modular feature packages.

  • Unicode CLDR JSON locale data
  • Number, currency, and percent formatting
  • Date and time parsing and display
JavaScriptWebDetails →
★ 4.8k⟳ 17 days agoMIT