Message

@Serializable
@SerialName(value = "Message")
data class Message(val id: Identifier, val value: Pattern? = null, val attributes: List<Attribute> = emptyList(), val comment: Entry.Comment? = null, val docComment: DocComment? = null) : Entry(source)

A message entry - the primary building block of Fluent translations.

Messages have an id and optional value (the translatable text), attributes (variant-specific values), and a comment.

Constructors

Link copied to clipboard
constructor(id: Identifier, value: Pattern? = null, attributes: List<Attribute> = emptyList(), comment: Entry.Comment? = null, docComment: DocComment? = null)

Properties

Link copied to clipboard

List of attributes (variant-specific values)

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The message identifier

Link copied to clipboard

The message value (pattern), or null if message has no content