Skip to content

How to pass booleans to functions? #104

@spookylukey

Description

@spookylukey

The guide talks about the NUMBER function and its useGrouping named parameter:

https://projectfluent.org/fluent/guide/functions.html#number

According to the MDN spec linked, this parameter is a boolean i.e. true or false in JS. However, FTL provides no way to specify booleans. In Javascript, you can get away with passing 0 and 1, and possibly other languages too, but there should be a properly specified way of doing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FUTUREIdeas and requests to consider after Fluent 1.0forwards incompatibleOld parsers won't parse newer files.syntax

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions