Skip to content

Support Inlang Message Format #14436

@johanohly

Description

@johanohly

Describe the problem

Using the Inlang Message Format with variants and gendering, results in Weblate misunderstanding what strings are meant for translating (as they veer off the json key-value structure of basic translations).

Describe the solution you would like

Support for the Inlang Message Format: https://inlang.com/m/reootnfj/plugin-inlang-messageFormat

Describe alternatives you have considered

No response

Screenshots

The following translation does not work well with Weblate:

    "going_count": [
      {
        "declarations": [
          "input count",
          "local countPlural = count: plural"
        ],
        "selectors": [
          "countPlural"
        ],
        "match": {
          "self_going=*, count=0": "No one going",
          "self_going=true, countPlural=*": "{count} going",
          "self_going=false, countPlural=one": "{count} other going",
          "self_going=false, countPlural=other": "{count} others going"
        }
      }
    ]

For reference, it results in the following (to be expected):
Image

Additional context

Related translate-toolkit issue: translate/translate#5559

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: File format supportIssues related to file formats implemented in Weblate.Blocked by upstreamThe solution to this issue depends on a third-party project and needs to be addressed there first.Waiting for: DemandLow priority for development. Pull requests welcome. Can be prioritized by sponsorship.enhancementAdding or requesting a new feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions