serialize

fun serialize(resource: Resource, options: SerializerOptions = SerializerOptions()): String(source)

Convenience function to serialize a Resource to an FTL string.

Return

A string in Fluent Translation List format

Parameters

resource

The AST root to serialize

options

Serialization options