[Glitch] Refactor report modal heading translation
Port fe2db1e2e854fde6cdd82344bde0f9fee9ac2151 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
de89461fb8
commit
ada096fd2b
@ -20,8 +20,9 @@ const messages = defineMessages({
|
|||||||
violation_description: { id: 'report.reasons.violation_description', defaultMessage: 'You are aware that it breaks specific rules' },
|
violation_description: { id: 'report.reasons.violation_description', defaultMessage: 'You are aware that it breaks specific rules' },
|
||||||
other: { id: 'report.reasons.other', defaultMessage: 'It\'s something else' },
|
other: { id: 'report.reasons.other', defaultMessage: 'It\'s something else' },
|
||||||
other_description: { id: 'report.reasons.other_description', defaultMessage: 'The issue does not fit into other categories' },
|
other_description: { id: 'report.reasons.other_description', defaultMessage: 'The issue does not fit into other categories' },
|
||||||
status: { id: 'report.category.title_status', defaultMessage: 'post' },
|
status: { id: 'report.category.title_status', defaultMessage: "Tell us what's going on with this post" },
|
||||||
account: { id: 'report.category.title_account', defaultMessage: 'profile' },
|
account: { id: 'report.category.title_account', defaultMessage: "Tell us what's going on with this profile" },
|
||||||
|
collection: { id: 'report.category.title_collection', defaultMessage: "Tell us what's going on with this collection"}
|
||||||
});
|
});
|
||||||
|
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
@ -82,14 +83,7 @@ class Category extends PureComponent {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<NavigationFocusTarget as='h1' className='report-dialog-modal__title'>
|
<NavigationFocusTarget as='h1' className='report-dialog-modal__title'>
|
||||||
{startedFrom === 'collection' ? (
|
{intl.formatMessage(messages[startedFrom])}
|
||||||
<FormattedMessage
|
|
||||||
id='report.collection_comment'
|
|
||||||
defaultMessage='Why do you want to report this collection?'
|
|
||||||
/>
|
|
||||||
) : (
|
|
||||||
<FormattedMessage id='report.category.title' defaultMessage="Tell us what's going on with this {type}" values={{ type: intl.formatMessage(messages[startedFrom]) }} />
|
|
||||||
)}
|
|
||||||
</NavigationFocusTarget>
|
</NavigationFocusTarget>
|
||||||
<p className='report-dialog-modal__lead'><FormattedMessage id='report.category.subtitle' defaultMessage='Choose the best match' /></p>
|
<p className='report-dialog-modal__lead'><FormattedMessage id='report.category.subtitle' defaultMessage='Choose the best match' /></p>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user