diff --git a/i18n/resources.json b/i18n/resources.json index 1b0d1cb..c4ba0ef 100644 --- a/i18n/resources.json +++ b/i18n/resources.json @@ -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", diff --git a/src/embed/status.ts b/src/embed/status.ts index e8bcc55..ccc188b 100644 --- a/src/embed/status.ts +++ b/src/embed/status.ts @@ -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