Skip to content

Commit 93248f9

Browse files
committed
fluent 0.10.0
1 parent 81ec759 commit 93248f9

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

fluent/CHANGELOG.md

+52
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,57 @@
11
# Changelog
22

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+
355
## fluent 0.9.1 (October 23, 2018)
456
557
- Forbid messages with `null` values and no attributes. (#299)

fluent/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fluent",
33
"description": "Localization library for expressive translations.",
4-
"version": "0.9.1",
4+
"version": "0.10.0",
55
"homepage": "http://projectfluent.org",
66
"author": "Mozilla <[email protected]>",
77
"license": "Apache-2.0",

0 commit comments

Comments
 (0)