GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-fluent/fluent.runtime at main · SAY-5/python-fluent

Expand file tree

/

fluent.runtime

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

fluent.runtime

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
docs
docs
 
 
fluent/runtime
fluent/runtime
 
 
tests
tests
 
 
tools/benchmarks
tools/benchmarks
 
 
CHANGELOG.rst
CHANGELOG.rst
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 

README.md

fluent.runtime

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 at https://projectfluent.org/python-fluent/fluent.runtime/.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.