Skip to content

Fluent Syntax Spec 0.5.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@stasm stasm released this 31 Jan 18:46
· 177 commits to master since this release
  • Added terms. (#62, #85)

    Terms are entries which can only be referenced by other messages. Terms cannot be retrieved by the MessageContext runtime.

    Terms start their identifiers with a single dash -. Tools may introduce different checks for messages and terms.

  • Removed tags. (#67)

    The same functionality can be achieved by using term attributes.

    -brand-name = Firefox
        .gender = masculine
    
    has-updated =
        { -brand-name.gender ->
            [masculine] { -brand-name} został zaktualizowany.
            [feminine] { -brand-name } została zaktualizowana.
           *[other] Program { -brand-name } został zaktualizowany.
        }
  • Changed the comment sigil to #. (#58)

  • Removed sections and introduced group and resource comments. (#58)

    Comments starting with ## and ### define the outline of the file and replace sections. ## denotes group-level comments (GroupComment in ASDL) and ### denotes resource-level comments (ResourceComment). These are always standalone Comment entries.

    The comment field on the Resource node was removed.

  • Require = after the identifier in message definitions. (#63)

  • Renamed Symbol to VariantName in the ASDL.