mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 18:45:41 +01:00
Change percentile label in year in review in web UI (#33148)
This commit is contained in:
parent
88ff1c8e7e
commit
6cf87762a4
2 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
/* eslint-disable react/jsx-no-useless-fragment */
|
/* eslint-disable react/jsx-no-useless-fragment */
|
||||||
import { FormattedMessage, FormattedNumber } from 'react-intl';
|
import { FormattedMessage, FormattedNumber } from 'react-intl';
|
||||||
|
|
||||||
|
import { domain } from 'mastodon/initial_state';
|
||||||
import type { Percentiles } from 'mastodon/models/annual_report';
|
import type { Percentiles } from 'mastodon/models/annual_report';
|
||||||
|
|
||||||
export const Percentile: React.FC<{
|
export const Percentile: React.FC<{
|
||||||
|
@ -12,7 +13,7 @@ export const Percentile: React.FC<{
|
||||||
<div className='annual-report__bento__box annual-report__summary__percentile'>
|
<div className='annual-report__bento__box annual-report__summary__percentile'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='annual_report.summary.percentile.text'
|
id='annual_report.summary.percentile.text'
|
||||||
defaultMessage='<topLabel>That puts you in the top</topLabel><percentage></percentage><bottomLabel>of Mastodon users.</bottomLabel>'
|
defaultMessage='<topLabel>That puts you in the top</topLabel><percentage></percentage><bottomLabel>of {domain} users.</bottomLabel>'
|
||||||
values={{
|
values={{
|
||||||
topLabel: (str) => (
|
topLabel: (str) => (
|
||||||
<div className='annual-report__summary__percentile__label'>
|
<div className='annual-report__summary__percentile__label'>
|
||||||
|
@ -44,6 +45,8 @@ export const Percentile: React.FC<{
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
|
|
||||||
|
domain,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{(message) => <>{message}</>}
|
{(message) => <>{message}</>}
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
"annual_report.summary.most_used_hashtag.most_used_hashtag": "most used hashtag",
|
"annual_report.summary.most_used_hashtag.most_used_hashtag": "most used hashtag",
|
||||||
"annual_report.summary.most_used_hashtag.none": "None",
|
"annual_report.summary.most_used_hashtag.none": "None",
|
||||||
"annual_report.summary.new_posts.new_posts": "new posts",
|
"annual_report.summary.new_posts.new_posts": "new posts",
|
||||||
"annual_report.summary.percentile.text": "<topLabel>That puts you in the top</topLabel><percentage></percentage><bottomLabel>of Mastodon users.</bottomLabel>",
|
"annual_report.summary.percentile.text": "<topLabel>That puts you in the top</topLabel><percentage></percentage><bottomLabel>of {domain} users.</bottomLabel>",
|
||||||
"annual_report.summary.percentile.we_wont_tell_bernie": "We won't tell Bernie.",
|
"annual_report.summary.percentile.we_wont_tell_bernie": "We won't tell Bernie.",
|
||||||
"annual_report.summary.thanks": "Thanks for being part of Mastodon!",
|
"annual_report.summary.thanks": "Thanks for being part of Mastodon!",
|
||||||
"attachments_list.unprocessed": "(unprocessed)",
|
"attachments_list.unprocessed": "(unprocessed)",
|
||||||
|
|
Loading…
Reference in a new issue