Resource

@Serializable
data class Resource(val body: List<Entry>, val type: String = "Resource")(source)

Root AST node representing a complete Fluent Translation List (FTL) resource.

A Resource is the top-level container for all parsed Fluent content. It contains a list of Entry elements representing messages, terms, and comments.

The type field is always "Resource" and is serialized to match the upstream fluent-rs fixture shape.

Constructors

Link copied to clipboard
constructor(body: List<Entry>, type: String = "Resource")

Properties

Link copied to clipboard

The list of entries (messages, terms, comments) in this resource

Link copied to clipboard