feat(link): update LinkEditForm to use localized labels for Open Graph fields

- Replaced static labels in LinkEditForm with localized messages for ogTitle, ogDescription, and ogImageUrl.
- Added a new label for imageUrl in the messages file to support localization.
This commit is contained in:
crbon 2026-01-22 13:42:48 +10:00
parent dd2de94548
commit 0471c6b452
2 changed files with 4 additions and 3 deletions

View file

@ -145,15 +145,15 @@ export function LinkEditForm({
{showAdvanced && (
<Column gap="3">
<FormField label="Title" name="ogTitle">
<FormField label={formatMessage(labels.title)} name="ogTitle">
<TextField autoComplete="off" />
</FormField>
<FormField label="Description" name="ogDescription">
<FormField label={formatMessage(labels.description)} name="ogDescription">
<TextField autoComplete="off" />
</FormField>
<FormField label="Image URL" name="ogImageUrl">
<FormField label={formatMessage(labels.imageUrl)} name="ogImageUrl">
<TextField autoComplete="off" />
</FormField>

View file

@ -355,6 +355,7 @@ export const labels = defineMessages({
saveCohort: { id: 'label.save-cohort', defaultMessage: 'Save as cohort' },
analysis: { id: 'label.analysis', defaultMessage: 'Analysis' },
destinationUrl: { id: 'label.destination-url', defaultMessage: 'Destination URL' },
imageUrl: { id: 'label.image-url', defaultMessage: 'Image URL' },
audience: { id: 'label.audience', defaultMessage: 'Audience' },
invalidUrl: { id: 'label.invalid-url', defaultMessage: 'Invalid URL' },
environment: { id: 'label.environment', defaultMessage: 'Environment' },