FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

python-fluent/fluent.syntax at main · projectfluent/python-fluent · GitHub

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

fluent.syntax

Read, write, and transform Fluent files.

This package includes the parser, serializer, and traversal utilities like Visitor and Transformer. You’re looking for this package if you work on tooling for Fluent in Python.

from fluent.syntax import parse, ast, serialize
resource = parse("a-key = String to localize")
resource.body[0].value.elements[0].value = "Localized string"
serialize(resource)
# 'a-key = Localized string\n'

Find the full documentation at https://projectfluent.org/python-fluent/fluent.syntax/.


Back | FazBrowse Home | New Git URL