WeblateOrg / WeblateOrg/weblate

Support i18next keys that do not match the source file

Open
#13,069 4 comments 1 reaction 0 assignees View on GitHub
Area: File format support 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

Currently there is no possibility to define units that do not match the source file while using monolingual localization framework. This feature could be used to support word cases which are different for every language inside glossary.

For example:

```
// ru.json
{
"word-nominative": "слово",
"word-genitive": "слова",
"word-dative": "слову",
"word-accusative": "слово",
"word-instrumental": "словом",
"word-prepositional": "слове",
}

// en.json
{
"word": "word",
}
```

### Describe the solution you would like

Enhance multistrings not only with plurals, but also with cases: `"word_one#nominative": "слово"`.

### Describe alternatives you have considered

Allow manually configure component not to drop units that don't match the source file.

### Screenshots

_No response_

### Additional context

_No response_

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.