Skip to content

Commit

Permalink
Localize gifIndicator
Browse files Browse the repository at this point in the history
  • Loading branch information
dangeredwolf committed Apr 30, 2024
1 parent ad6139c commit 8a8bf14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion i18n/resources.json
Expand Up @@ -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>):",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/embed/status.ts
Expand Up @@ -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
Expand Down

0 comments on commit 8a8bf14

Please sign in to comment.