Hi everyone!
I’ve just published fluent-manager, a small Python package that wraps fluent-runtime
and makes it easier to manage localisations in Python projects.
What it does:
- Simple API to retrieve localised strings by key
- Automatic fallback chain: preferred locales → default locale → key itself
- Auto-discovery of available locales and .ftl files from the filesystem
- Supports multiple preferred locales in priority order
Quick example:
from fluent_manager import FluentManager
lang_manager = FluentManager(
locales=[“uk”, “pl”],
locales_path=“/path/to/locales”,
default_locale=“en”,
)
message = lang_manager.get(“welcome-message”, user_name=“Andrii”)
Links:
- PyPI: https://pypi.org/project/fluent-manager/
- GitHub: https://github.com/BogdanovychA/fluent-manager
Would love to hear any feedback or suggestions from the Fluent community! ![]()