Introduction
FTL is the text format that describes translation resources in Fluent, a
localisation system. It is designed to be simple to read while allowing translations
to handle grammar such as plurals. Mozilla uses it in Firefox. Files use the
extension .ftl.
Structure
A file holds messages, each with an identifier and a text value. Terms have
identifiers that start with - and are referred to from other messages.
Attributes, written with a leading dot, attach further strings to a message.
Placeables in curly braces insert variables and references, and a select expression
chooses among variants, one of which is marked * as the default. Values
may continue on indented lines. Comments start with #, ##
or ### according to whether they describe a message, a group or the
file.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the formal grammar, string and number literals, built-in functions and the exact indentation rules.
- Viewer: the site has no viewer for this format.
Links
Reference
- Fluent syntax guide – the project’s guide to FTL
- Fluent for Firefox developers – how Firefox uses FTL files