Skip to main content

Localization library for expressive translations.

Project description

Use Fluent to localize your Python application. It comes with a Localization class to use, based on an implementation of FluentBundle. It uses the parser from fluent.syntax to read Fluent files.

>>> from datetime import date
>>> l10n = DemoLocalization("today-is = Today is { $today }")
>>> val = l10n.format_value("today-is", {"today": date.today() })
>>> val
'Today is Jun 16, 2018'

Find the full documentation on https://projectfluent.org/python-fluent/fluent.runtime/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fluent.runtime-0.4.0.tar.gz (17.6 kB view hashes)

Uploaded Source

Built Distribution

fluent.runtime-0.4.0-py2.py3-none-any.whl (15.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page