mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-04 10:00:55 +01:00
Localize gifIndicator
This commit is contained in:
parent
ad6139cfa9
commit
8a8bf14a16
2 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
"translatedFrom": "Translated from {language}",
|
||||
"quotedFrom": "Quoting {name} (@{screen_name})",
|
||||
"replyingTo": "Replying to @{screen_name}",
|
||||
"threadPartHeader": "A part of @${status.author.screen_name}'s thread",
|
||||
"threadPartHeader": "A part of @${screen_name}'s thread",
|
||||
|
||||
"ivAuthorActionReply": "<a href=\"{statusUrl}\">Reply</a> from <b>{authorName}</b> (<a href=\"{authorUrl}\">@{authorScreenName}</a>):",
|
||||
"ivAuthorActionOriginal": "<a href=\"{statusUrl}\">Original</a> from <b>{authorName}</b> (<a href=\"{authorUrl}\">@{authorScreenName}</a>):",
|
||||
|
@ -34,6 +34,8 @@
|
|||
"ivPollChoice": "{voteCount, plural,\none {# vote}\nother {# votes}\n}, {percentage}%",
|
||||
"ivCommunityNoteHeader": "Readers added context they thought people might want to know",
|
||||
|
||||
"gifIndicator": "GIF - {brandingName}",
|
||||
|
||||
"language_af": "Afrikaans",
|
||||
"language_ar": "Arabic",
|
||||
"language_ca": "Catalan",
|
||||
|
|
|
@ -488,7 +488,7 @@ export const handleStatus = async (
|
|||
const mediaType = overrideMedia ?? status.media.videos?.[0]?.type;
|
||||
|
||||
if (mediaType === 'gif') {
|
||||
provider = `GIF - ${Constants.BRANDING_NAME}`;
|
||||
provider = i18next.t('gifIndicator', {brandingName: Constants.BRANDING_NAME});
|
||||
} else if (
|
||||
status.embed_card === 'player' &&
|
||||
providerEngagementText !== Strings.DEFAULT_AUTHOR_TEXT
|
||||
|
|
Loading…
Add table
Reference in a new issue