Skip to content

fluent-syntax: Add syntax for plain text interpolation #74

Closed
@mortyccp

Description

@mortyccp

Currently we have Message References.

brandName = Loki
installing = Installing { brandName }.

menu-save = Save
help-menu-save = Click "{ menu-save }" to save the file.

This indicate the translator to not translate the what inside the { }.

I suggest we can add another syntax to make the contents to be translated too.
For example

alert_message = Click #{ here } for more detail.

This is useful because we can keep the sentence to be translated all together. And if we provide AST form of the translated result, we provide the renderer ability to further enhance the appearance or behaviour of the word here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions