WeblateOrg / WeblateOrg/weblate

Plural rules (i18next v4) not working for Montenegrin

Open
#11,197 8 comments 0 reactions 0 assignees View on GitHub
Waiting for: Demand
Dominant language
Python
Stars
6.1k
Forks
1.4k
Avg merge
9h 53m
Merged PRs (30d)
395

Description

### Describe the issue

I am using i18next v4 json files for my translations. Among the languages I also have Montengrin (me.js)

In the file me.js I had a plural form of the following translation:
"episode_one": "{number} epizoda",
"episode_other": "{number} epizoda",
"episode_few": "{number} epizode",

However, Weblate for some reason requires the forms one, few, many:
Screenshot 2024-03-13 at 23 32 03

When I save this translation string I lose the episode_few key from my source file, but episode_one and episode_other are kept.

### I already tried

- [X] I've read and searched [the documentation](https://docs.weblate.org/).
- [X] I've searched for similar filed issues in this repository.

### Steps to reproduce the behavior

1. Import me.js with correct plural rules into weblate:
```
"episode_one": "{number} epizoda",
"episode_other": "{number} epizoda",
"episode_few": "{number} epizode",
```
Weblate requires me to write entries:
- episode_one
- episode_few
- episode_many

### Expected behavior

Weblate requires entering of
- episode_one
- episode_other
- episode_few

### Screenshots

Screenshot 2024-03-13 at 23 32 03

### Exception traceback

_No response_

### How do you run Weblate?

Other

### Weblate versions

Weblate 5.3.1

### Weblate deploy checks

_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.