Closed Bug 1541453 Opened 5 years ago Closed 5 years ago

Update to Fluent Syntax 0.9

Categories

(Webtools Graveyard :: Pontoon, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Assigned: mathjazz)

Details

Attachments

(1 file)

Please update Pontoon to Fluent Syntax 0.9.

The following updates to implementations have been published:

  • fluent-syntax 0.12 (JS)
  • fluent.syntax 0.14 (Python)
  • compare-locales 7.0.0

This update will require a few changes in fluent_interface.js. See https://github.com/projectfluent/fluent/releases/tag/v0.9.0 for the AST changes. See https://github.com/projectfluent/fluent.js/releases/tag/fluent-syntax%400.11.0 and https://github.com/projectfluent/fluent.js/releases/tag/fluent-syntax%400.12.0 for the API changes. Most notably:

  • (AST) CallExpressions and AttributeExpressions are gone. Instead, MessageReferences, TermReferences and FunctionReferences have new fields, where applicable: attribute and arguments.

  • (API) You can use the newly exposed serializeVariantKey in a few places rather than manually doing things like item.key.value || item.key.name.

  • (API) serializeExpression is now a simple function export, not a method of FluentSerializer.

Assignee: nobody → m
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: