Add ICU select to report strings (#5312)

This commit is contained in:
Jerozgen
2026-02-06 21:27:55 +03:00
committed by GitHub
parent 8789d7b057
commit 695233e736
2 changed files with 17 additions and 12 deletions

View File

@@ -2364,10 +2364,10 @@
"message": "You've already reported {title}" "message": "You've already reported {title}"
}, },
"report.already-reported-description": { "report.already-reported-description": {
"message": "You have an open report for this {item} already. You can add more details to your report if you have more information to add." "message": "You have an open report for this {item, select, project {project} version {version} user {user} other {content}} already. You can add more details to your report if you have more information to add."
}, },
"report.back-to-item": { "report.back-to-item": {
"message": "Back to {item}" "message": "Back to {item, select, project {project} version {version} user {user} other {content}}"
}, },
"report.body.description": { "report.body.description": {
"message": "Include links and images if possible and relevant. Empty or insufficient reports will be closed and ignored." "message": "Include links and images if possible and relevant. Empty or insufficient reports will be closed and ignored."
@@ -2376,10 +2376,10 @@
"message": "Please provide additional context about your report" "message": "Please provide additional context about your report"
}, },
"report.checking": { "report.checking": {
"message": "Checking {item}..." "message": "Checking {item, select, project {project} version {version} user {user} other {content}}..."
}, },
"report.could-not-find": { "report.could-not-find": {
"message": "Could not find {item}" "message": "Could not find {item, select, project {project} version {version} user {user} other {content}}"
}, },
"report.for.violation": { "report.for.violation": {
"message": "Violation of Modrinth <rules-link>Rules</rules-link> or <terms-link>Terms of Use</terms-link>" "message": "Violation of Modrinth <rules-link>Rules</rules-link> or <terms-link>Terms of Use</terms-link>"
@@ -2421,13 +2421,13 @@
"message": "Please report:" "message": "Please report:"
}, },
"report.question.content-id": { "report.question.content-id": {
"message": "What is the ID of the {item}?" "message": "What is the ID of the {item, select, project {project} version {version} user {user} other {content}}?"
}, },
"report.question.content-type": { "report.question.content-type": {
"message": "What type of content are you reporting?" "message": "What type of content are you reporting?"
}, },
"report.question.report-reason": { "report.question.report-reason": {
"message": "Which of Modrinth's rules is this {item} violating?" "message": "Which of Modrinth's rules is this {item, select, project {project} version {version} user {user} other {content}} violating?"
}, },
"report.report-content": { "report.report-content": {
"message": "Report content to moderators" "message": "Report content to moderators"

View File

@@ -559,11 +559,12 @@ const messages = defineMessages({
alreadyReportedDescription: { alreadyReportedDescription: {
id: 'report.already-reported-description', id: 'report.already-reported-description',
defaultMessage: defaultMessage:
'You have an open report for this {item} already. You can add more details to your report if you have more information to add.', 'You have an open report for this {item, select, project {project} version {version} user {user} other {content}} already. You can add more details to your report if you have more information to add.',
}, },
backToItem: { backToItem: {
id: 'report.back-to-item', id: 'report.back-to-item',
defaultMessage: 'Back to {item}', defaultMessage:
'Back to {item, select, project {project} version {version} user {user} other {content}}',
}, },
goToReport: { goToReport: {
id: 'report.go-to-report', id: 'report.go-to-report',
@@ -609,19 +610,23 @@ const messages = defineMessages({
}, },
whatContentId: { whatContentId: {
id: 'report.question.content-id', id: 'report.question.content-id',
defaultMessage: 'What is the ID of the {item}?', defaultMessage:
'What is the ID of the {item, select, project {project} version {version} user {user} other {content}}?',
}, },
whatReportReason: { whatReportReason: {
id: 'report.question.report-reason', id: 'report.question.report-reason',
defaultMessage: "Which of Modrinth's rules is this {item} violating?", defaultMessage:
"Which of Modrinth's rules is this {item, select, project {project} version {version} user {user} other {content}} violating?",
}, },
checking: { checking: {
id: 'report.checking', id: 'report.checking',
defaultMessage: 'Checking {item}...', defaultMessage:
'Checking {item, select, project {project} version {version} user {user} other {content}}...',
}, },
couldNotFind: { couldNotFind: {
id: 'report.could-not-find', id: 'report.could-not-find',
defaultMessage: 'Could not find {item}', defaultMessage:
'Could not find {item, select, project {project} version {version} user {user} other {content}}',
}, },
reportBodyTitle: { reportBodyTitle: {
id: 'report.body.title', id: 'report.body.title',