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.3.1.tar.gz
(12.0 kB
view hashes)
Built Distribution
Close
Hashes for fluent.runtime-0.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1da9bf779e6b8cbfb5a71dd59cd7e193f8dc8da318bda7163bc41e9ae15f8574 |
|
MD5 | 819769f7f62c72535ce26439f12251f6 |
|
BLAKE2b-256 | b081ab27cea19ef3c40301a2d29e756e0b4a8a0a5ddfbdaa8ae1f88e99a423b2 |