angular-translate / angular-translate/grunt-po2json-angular-translate

Incorrect interpolation variables into plurals

Open
#5 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Correct

```
.po:
msgstr[0] "Время: %d {name} секунда"
msgstr[1] "Время: %d {name} секунд"
msgstr[2] "Время: %d {name} секуды"

.json:
"Время: {{name}} {PLURALIZE, plural, offset:1 =2{# секунда} other{# секунд}}"
```

Incorrect

```
.po:
msgstr[0] "Время: %d секунда {name}"
msgstr[1] "Время: %d секунд {name}"
msgstr[2] "Время: %d секуды {name}"

.json:
"Время: {{PLURALIZE, plural, offset:1 =2{# секунда}} other{# секунд}} {name}"
```

Must be

```
"Время: {{PLURALIZE, plural, offset:1 =2{# секунда}} other{# секунд}} {{name}}"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.