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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file fluent.runtime-0.4.0.tar.gz.

File metadata

  • Download URL: fluent.runtime-0.4.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for fluent.runtime-0.4.0.tar.gz
Algorithm Hash digest
SHA256 cb5ef96a58a3f67acaaca046d1201d202a1ebf2823e5e664370f359bae20574d
MD5 2a886303dc9ee27bfc3e8c95a68c6137
BLAKE2b-256 dc5494bbd857443565a5776027165fe1e2634d836681d7d9c8992a2fd0ce8302

See more details on using hashes here.

File details

Details for the file fluent.runtime-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for fluent.runtime-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 51fd02582c2363e1106d7051642967a1b7f406dd9c317bd4600a73ede40c5146
MD5 b458528c30ae553fe8cb3e8f13aa9804
BLAKE2b-256 e589a19b0bdfc74977b44aca2ad2e0600fd89c778184fcbb7fc44ba1002cc7b5

See more details on using hashes here.

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