Decicus / DecAPI

API provider/proxy that provides plaintext responses - Documentation: https://docs.decapi.me/
https://decapi.me/
MIT License
118 stars 23 forks source link

Fixes repeated host message when using limit parameter for hosts #60

Closed crunchprank closed 4 years ago

crunchprank commented 4 years ago

When attempting to add the limit parameter for the Twitch hosts endpoint, the following would occur:

Example URL: https://decapi.me/twitch/hosts/myth?limit=3 Response: fortnitehypedeutsch, vuptr, imperfectvisuals and 7155 other|fortnitehypedeutsch, vuptr, imperfectvisuals and 7155 others

This fixes the duplicate message. Note that for en, it was other and not others which I changed. However this may need to be reviewed for de, no, and ru, as I simply added a . and removed the duplicate message from those translation files.

Decicus commented 4 years ago

Thanks for the PR.
However, the translation files were already correct, except I wasn't getting the translation strings with the correct method.

I fixed it in ca9da19, so I'll be closing this.