updated fluent to 0.8

This commit is contained in:
Danny Coates 2018-09-04 13:30:11 -07:00
parent 59224516b7
commit 7c6aabc388
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
4 changed files with 15 additions and 15 deletions

View file

@ -14,7 +14,7 @@ The development environment includes all locales in `public/locales` via the `L1
## Code
In `app/` we use the `state.translate()` function to translate strings to the best matching language base on the user's `Accept-Language` header. It's a wrapper around fluent's [MessageContext.format](http://projectfluent.org/fluent.js/fluent/MessageContext.html). It works the same for both server and client side rendering.
In `app/` we use the `state.translate()` function to translate strings to the best matching language base on the user's `Accept-Language` header. It's a wrapper around fluent's [FluentBundle.format](http://projectfluent.org/fluent.js/fluent/FluentBundle.html). It works the same for both server and client side rendering.
### Examples