Registry / devops / translation-finder

translation-finder

JSON →
library3.1pypypi✓ verified 81d ago

A Python library to locate translation files in a project, used by Weblate. Version 2.24 requires Python >=3.11. Released irregularly as needed by Weblate.

pip install translation-finder
INSTALL
IMPORT
SIG · TRANSLATION-FINDER
T
translation-finder
devopspythonv3.1
Install
2.7s avg
Import
Disk
46MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.23 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 46.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.7s · import 0.000s · 47MB
46MB installed
● package 46MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Finder
from translation_finder import Finder
from translation_finder.finder import Finding
discover
from translation_finder import discover
DiscoveryResult
from translation_finder import DiscoveryResult

Scans a project directory and returns a list of Finding objects with filename, language, format, and documentation.

from translation_finder.finder import get_translations # Scan a directory for translation files results = get_translations('/path/to/project') for f in results: print(f.filename, f.language, f.format, f.documentation)
Debug
Known issues
deprecatedThe function `get_translations` may be deprecated in future versions in favor of a class-based API. Check latest docs before upgrading.
fix
Use `from translation_finder.finder import TranslationFinder` and instantiate with the path.
affects: <3.0
gotcha`get_translations` returns a generator, not a list. If you need to reuse the results, convert to a list explicitly.
fix
`results = list(get_translations('/path'))`
affects: all
Upgrade
Version history
3.1latest on PyPI · released May 12, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
18
OpenAI (training)
1
Resources
translation-finder — pip install translation-finder · libregistry