-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
Description
Description
Recently Mozilla released stable version of Fluent - it's specification for storing and managing translations in human-readable format. The main benefits of Fluent:
- It does not require any special software to manage translations because of pretty and clean syntax.
- It's standard.
- Pluralization is supported by standard.
Links:
- Website: projectfluent.org
- Repository with specification: github.com/projectfluent/fluent
- Official implementations: JavaScript, Python, Rust
Example
Fluent syntax looks pretty similar to YAML format used by symfony/translation, but much more flexible.
Symfony example:
apples_count: {0} There are no apples.|{1} There is one apple.|]1,Inf[ There are %count% apples.
Fluent example:
apples_count =
{ $apples_count ->
[0] There are no apples
[one] There is one apple
*[other] There are { $apples_count } apples
}.