Skip to content

Instantly share code, notes, and snippets.

@zbraniecki
Last active August 17, 2018 16:22
Show Gist options
  • Save zbraniecki/5848e7142cf9090edce5d48f80ad9b1f to your computer and use it in GitHub Desktop.
Save zbraniecki/5848e7142cf9090edce5d48f80ad9b1f to your computer and use it in GitHub Desktop.
Fluent 0.7 indentation feedback

Hi,

We're looking for feedback on the a behavior when writing multiline patterns in Fluent.

The decision we're trying to make is whether this message:

Variant 1

this-is-my-key =
    Lorem ipsum dolor sit amet, consectetur adipiscing.
    Nam vehicula tortor id blandit imperdiet. Sed a quam non
    nisl eleifend auctor ac sit amet nibh. Nullam eleifend eros nunc,
    id bibendum odio volutpat ut. Curabitur vitae lorem at diam
    dignissim eleifend. Phasellus vitae diam sapien.

should be possible to be written as:

Variant 2

this-is-my-key = Lorem ipsum dolor sit amet, consectetur adipiscing.
    Nam vehicula tortor id blandit imperdiet. Sed a quam non
    nisl eleifend auctor ac sit amet nibh. Nullam eleifend eros nunc,
    id bibendum odio volutpat ut. Curabitur vitae lorem at diam
    dignissim eleifend. Phasellus vitae diam sapien.

In the former case, we would establish the pattern indent based on the first line of the value and use it as the base indent for the rest of the message.

In the latter case, we would use the indent of the second line of the value as the base for the rest of the value.

Questions

  1. Would you be surprised if Fluent did not allow for variant 2?
  2. Do you think you would find it limiting to not be able to use variant 2?
  3. When writing your own Fluent files, which variant would you be more likely to choose?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment