fix: SEO SPA editor last fixes (3/4)

This commit is contained in:
Florian Sylvain committed 2026-10-16 16:31:17 +02:00
1 parent 470584400f
commit cb737b7ae3
19 files changed
+316 -147

No files matched your search

+10 -11
View File
@@ -14,25 +14,24 @@ const MESSAGES: Record<SuggestionCode, (params: Record<string, number>) => strin
params.length,
params.max,
]),
title_empty: () => t('The meta title is empty.'),
title_empty: () => t('No meta title yet. The article title is used instead.'),
desc_short: descriptionLength,
desc_long: descriptionLength,
cover_alt: () => t('The cover image has no alt text. Add a short description of it.'),
cover_none: () => t('This article has no cover image.'),
slug_long: (params) =>
t('The URL slug is {0} characters. Shorter addresses are easier to share.', [
desc_long: (params) =>
t('The description is {0} characters. Search engines may cut it off after about {1}.', [
params.length,
params.max,
]),
no_au: () => t('This article has no author.'),
cover_alt: () => t('The cover image has no alt text. Add a short description of it.'),
cover_none: () => t("No cover image. The site's social image is used."),
slug_long: (params) =>
t('The slug is {0} characters. Shorter addresses are easier to share.', [params.length]),
no_au: () => t('This article has no authors, so the structured data has no author.'),
no_h: () => t('The body has no headings. H2 headings help readers scan the article.'),
body_alt: (params) =>
params.count === 1
? t('1 image in the body has no alt text.')
: t('{0} images in the body have no alt text.', [params.count]),
short: (params) =>
t('The body is {0} characters. Longer articles tend to do better in search.', [
params.length,
]),
short: () => t('The article is under 300 words. That is fine for a short note.'),
}
const LINK_LABELS: Record<SuggestionField, () => string> = {