|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## fluent 0.10.0 (December 13, 2018) |
| 4 | + |
| 5 | +This release of `fluent` brings support for version 0.8 of the Fluent Syntax |
| 6 | +spec. The `FluentBundle` API remains unchanged. Files written in valid Syntax |
| 7 | +0.7 may parse differently in this release. See the compatibility note below. |
| 8 | + |
| 9 | + - Implement Fluent Syntax 0.8. (#303) |
| 10 | + |
| 11 | + This is only a quick summary of the spec changes in Syntax 0.8. Consult the |
| 12 | + full [changelog][chlog0.8] for details. |
| 13 | + |
| 14 | + [chlog0.8]: https://github.com/projectfluent/fluent/releases/tag/v0.8.0 |
| 15 | + |
| 16 | + In multiline `Patterns`, all common indent is now removed from each |
| 17 | + indented line in the final value of the pattern. |
| 18 | + |
| 19 | + ```properties |
| 20 | + multiline = |
| 21 | + This message has 2 spaces of indent |
| 22 | + on the second line of its value. |
| 23 | + ``` |
| 24 | + |
| 25 | + `Terms` can now be parameterized via the call expression syntax. Only |
| 26 | + variables defined between the parentheses in the message a term is used in |
| 27 | + will be available inside of it. |
| 28 | + |
| 29 | + ```properties |
| 30 | + # A parametrized Term with a Pattern as a value. |
| 31 | + -thing = { $article -> |
| 32 | + *[definite] the thing |
| 33 | + [indefinite] a thing |
| 34 | + } |
| 35 | + |
| 36 | + this = This is { -thing(article: "indefinite") }. |
| 37 | + ``` |
| 38 | + |
| 39 | + `VariantLists` are now deprecated and will be removed from the Syntax |
| 40 | + before version 1.0. |
| 41 | + |
| 42 | + All escapes sequences can only be used in `StringLiterals` now (see below). |
| 43 | + `\UHHHHHH` is a new escape sequence format suitable for codepoints above |
| 44 | + U+FFFF, e.g. `{"\U01F602"}`. |
| 45 | + |
| 46 | +### Backward-incompatible changes: |
| 47 | + |
| 48 | + - The backslash character (`\`) is now considered a regular character in |
| 49 | + `TextElements`. It's no longer possible to use escape sequences in |
| 50 | + `TextElements`. Please use `StringLiterals` instead, e.g. `{"\u00A0"}`. |
| 51 | + - The closing curly brace character (`}`) is not allowed in `TextElements` |
| 52 | + now. Please use `StringLiterals` instead: `{"}"}`. |
| 53 | +
|
| 54 | +
|
3 | 55 | ## fluent 0.9.1 (October 23, 2018)
|
4 | 56 |
|
5 | 57 | - Forbid messages with `null` values and no attributes. (#299)
|
|
0 commit comments