From 6cf87762a4fffd3d35c2e4c98900df5867be12eb Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 3 Dec 2024 09:57:29 +0100 Subject: [PATCH] Change percentile label in year in review in web UI (#33148) --- .../mastodon/features/annual_report/percentile.tsx | 5 ++++- app/javascript/mastodon/locales/en.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/features/annual_report/percentile.tsx b/app/javascript/mastodon/features/annual_report/percentile.tsx index 22962019a1..0cfa7d18b9 100644 --- a/app/javascript/mastodon/features/annual_report/percentile.tsx +++ b/app/javascript/mastodon/features/annual_report/percentile.tsx @@ -1,6 +1,7 @@ /* eslint-disable react/jsx-no-useless-fragment */ import { FormattedMessage, FormattedNumber } from 'react-intl'; +import { domain } from 'mastodon/initial_state'; import type { Percentiles } from 'mastodon/models/annual_report'; export const Percentile: React.FC<{ @@ -12,7 +13,7 @@ export const Percentile: React.FC<{
(
@@ -44,6 +45,8 @@ export const Percentile: React.FC<{ )}
), + + domain, }} > {(message) => <>{message}} diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json index a02eb7741b..4c7dcb57ec 100644 --- a/app/javascript/mastodon/locales/en.json +++ b/app/javascript/mastodon/locales/en.json @@ -103,7 +103,7 @@ "annual_report.summary.most_used_hashtag.most_used_hashtag": "most used hashtag", "annual_report.summary.most_used_hashtag.none": "None", "annual_report.summary.new_posts.new_posts": "new posts", - "annual_report.summary.percentile.text": "That puts you in the topof Mastodon users.", + "annual_report.summary.percentile.text": "That puts you in the topof {domain} users.", "annual_report.summary.percentile.we_wont_tell_bernie": "We won't tell Bernie.", "annual_report.summary.thanks": "Thanks for being part of Mastodon!", "attachments_list.unprocessed": "(unprocessed)",