Improve nags translation strings (#4693)

This commit is contained in:
Jerozgen
2025-11-06 13:37:37 +03:00
committed by GitHub
parent 7437a833ef
commit 7674433f88
7 changed files with 29 additions and 38 deletions

View File

@@ -127,7 +127,7 @@ export const descriptionNags: Nag[] = [
defineMessage({
id: 'nags.description-too-short.description',
defaultMessage:
'Your description is {length} readable characters. At least {minChars} characters is recommended to create a clear and informative description.',
'Your description is {length, plural, one {# readable character} other {# readable characters}}. At least {minChars, plural, one {# character} other {# characters}} is recommended to create a clear and informative description.',
}),
{
length: readableLength,
@@ -198,7 +198,7 @@ export const descriptionNags: Nag[] = [
defineMessage({
id: 'nags.summary-too-short.description',
defaultMessage:
'Your summary is {length} characters. At least {minChars} characters is recommended to create an informative and enticing summary.',
'Your summary is {length, plural, one {# character} other {# characters}}. At least {minChars, plural, one {# character} other {# characters}} is recommended to create an informative and enticing summary.',
}),
{
length: context.project.description?.length || 0,
@@ -292,7 +292,7 @@ export const descriptionNags: Nag[] = [
description: defineMessage({
id: 'nags.title-contains-technical-info.description',
defaultMessage:
"Keeping your project's Name clean and makes it memorable easier to find. Version and loader information is automatically displayed alongside your project.",
"Keeping your project's Name clean makes it memorable and easier to find. Version and loader information is automatically displayed alongside your project.",
}),
status: 'warning',
shouldShow: (context: NagContext) => {