Serializer

class Serializer(options: SerializerOptions = SerializerOptions())(source)

Serializes an AST Resource back to a Fluent Translation List (FTL) string.

This is useful for debugging, logging, or round-tripping parsed content. The serializer produces canonical FTL formatting.

See also

for serialization configuration

Constructors

Link copied to clipboard
constructor(options: SerializerOptions = SerializerOptions())

Functions

Link copied to clipboard
fun serialize(resource: Resource): String

Serializes the given Resource to an FTL string.