Equal-Vote / star-server

STAR Voting is an upgrade to our current way of voting that allows voters to score candidates from 0 to 5. Ultimately, STAR Voting elects candidates who better represent the whole of the electorate. We are building a site that lets everyone from individuals to organizations use STAR Voting to host simple polls or run secure elections.
GNU Affero General Public License v3.0
19 stars 22 forks source link

Change grammar for multi winner elections #705

Open ArendPeter opened 1 month ago

ArendPeter commented 1 month ago

image

I think this can be handled using i18n's plural system https://www.i18next.com/translation-function/plurals

Brijeshthummar02 commented 1 month ago

@ArendPeter i can fix this, just show me the path to repo/file also assign the task to me.

ArendPeter commented 1 month ago

Awesome! This will require a change in the en.yaml file, and you'll also need to provide a "count" variable to the t component from useSubstitutedTranslation. I can give more details later

Brijeshthummar02 commented 1 month ago

provide all possible details and changes so that i can start work on it.

ArendPeter commented 1 month ago

Also in your PR please add yourself to the contributor list in en.yaml

Brijeshthummar02 commented 1 month ago

Screenshot (310)

solution: winner: winner_one: "{{count}} win" winner_other: "{{count}} wins"

should this be solution?