mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-10 21:10:54 +01:00
Fix localization bug with polls
This commit is contained in:
parent
e3970bc8be
commit
9a9ca5381e
1 changed files with 1 additions and 2 deletions
|
@ -391,8 +391,7 @@ export const handleStatus = async (
|
||||||
/* Finally, add the footer of the poll with # of votes and time left */
|
/* Finally, add the footer of the poll with # of votes and time left */
|
||||||
str += '\n'; /* TODO: Localize time left */
|
str += '\n'; /* TODO: Localize time left */
|
||||||
str += i18next
|
str += i18next
|
||||||
.t('pollVotes')
|
.t('pollVotes', { voteCount: formatNumber(poll.total_votes), timeLeft: poll.time_left_en })
|
||||||
.format({ voteCount: formatNumber(poll.total_votes), timeLeft: poll.time_left_en });
|
|
||||||
|
|
||||||
/* Check if the poll is ongoing and apply low TTL cache control.
|
/* Check if the poll is ongoing and apply low TTL cache control.
|
||||||
Yes, checking if this is a string is a hacky way to do this, but
|
Yes, checking if this is a string is a hacky way to do this, but
|
||||||
|
|
Loading…
Add table
Reference in a new issue