File: fluent.rst

package info (click to toggle)
translate-toolkit 3.19.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,156 kB
  • sloc: python: 74,004; sh: 1,412; makefile: 185; xml: 48
file content (28 lines) | stat: -rw-r--r-- 725 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Fluent
======

`Fluent <https://projectfluent.org/>`_ is a localization system developed by
Mozilla for natural-sounding translations. It is a monolingual format where
each language has its own set of ``.ftl`` files.

Example:

.. code-block:: none

   # Simple message
   hello = Hello World!

   # Message with a variable
   greeting = Hello { $name }!

   # Message with attributes
   login-input =
       .placeholder = email@example.com
       .aria-label = Login input
       .title = Login

Fluent is used by Firefox, Anki, and other projects. See the
`Fluent Syntax Guide <https://projectfluent.org/fluent/guide/>`_ for more
details on the format.

Convert Fluent files to PO format using :doc:`/commands/fluent2po`.