Skip to content

A Fluent (language translation) resource file codec

License

Notifications You must be signed in to change notification settings

nigeleke/fluent4rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fluent4rs

MIT License Language Build Coverage Version

Site | GitHub | API | Coverage Report

A Fluent (language translation) resource file codec.

Background

The fluent-syntax crate from Project Fluent parses Fluent FTL files. It provides a deserialisation only from the Resource level.

This crate:

  • enables conversion in both directions for any node in the syntax tree,
  • provides a syntax tree walker.

It has been written for lingora (a localization management program), and may be found to be useful outside of that context.

It is not intended to replace any aspects of the fluent-rs crate implemented by Project Fluent, and, for the majority of language translation needs, the reader is referred back to that crate.

Features

Feature Description
default All features are disabled
hash Allow AST nodes to be hashed, for potential usages in HashMaps
serde Allow AST nodes to be serialised / deserialised
trace Include default walker tracing in the DefaultVisitor implementation
walker Provide AST walker and visitors

Development

cargo test --features=hash

About

A Fluent (language translation) resource file codec

Resources

License

Stars

Watchers

Forks

Packages

No packages published