-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
(Bug): Localized large dislike numbers are incorrect for some languages #407
Comments
Current implementation is already taking browser locale for number formatting
Can you run the cited command in your browser console and see what's the result? |
@cyrildtm Oh. I totally missed that part. Speaking of that code, the locale will be |
I updated the issue title and description to reflect the current code. |
I tried and you are right, it's necessary for what you want to achieve, although I don't understand Thai. I'm not sure if preparing every language from our user base in a look up table is practical. Instead I have a possible workaround that is to let user decide the two options: |
@cyrildtm That looks like a good workaround. 👍🏻 |
Fix Issues Anarios#201 Anarios#364 Anarios#407 Using plugin options (Issue Anarios#387)
Fix Issues Anarios#201 Anarios#364 Anarios#407 Using plugin options (Issue Anarios#387)
Fix Issues Anarios#201 Anarios#364 Anarios#407 Using plugin options (Issue Anarios#387)
Fix Issues Anarios#201 Anarios#364 Anarios#407 Using plugin options (Issue Anarios#387)
Fix Issues Anarios#201 Anarios#364 Anarios#407 Using plugin options (Issue Anarios#387)
Extension or Userscript?
Both
Request or suggest a new feature!
For all dislikes greater than 999 and certain non-English languages like Thai, RYD only formats them in K, M and B.
They look apart. Note that "5.8 หมื่น" (Thai) translates to "5.8 ten-thousands" which is 58000. As for dislikes, it is "1.3 พัน" in Thai (1.3 thousands).
Ways to implement this!
You will write it like this for Thai locale:
We may need a mapping between locale and
compactDisplay
value?Or, do this?
Can you work on this?
The text was updated successfully, but these errors were encountered: