WeblateOrg / WeblateOrg/weblate

Support Inlang Message Format

Open
#14,436 1 comment 6 reactions 0 assignees View on GitHub
Area: File format support Blocked by upstream enhancement Waiting for: Demand
Dominant language
Python
Stars
6.1k
Forks
1.4k
Avg merge
9h 53m
Merged PRs (30d)
395

Description

### 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](https://github.com/user-attachments/assets/0c1a2c5f-71e4-4bc0-bc36-b3ef0753caa1)

### Additional context

Related translate-toolkit issue: https://github.com/translate/translate/issues/5559

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.