Added the alternate locales to the Social Card in the Infrastructure package.

This commit is contained in:
2026-09-04 14:36:22 +02:00
parent c8100fd93c
commit f0086ee461
3 changed files with 13 additions and 3 deletions
@@ -18,6 +18,7 @@ struct SocialCardTests {
url: "https://site.example/",
siteName: "A Site",
locale: "en",
alternateLocales: ["nl_NL", "de_DE"],
image: .init(
url: "https://site.example/img/card.png",
width: 2400,
@@ -33,6 +34,8 @@ struct SocialCardTests {
.init("A summary.", name: .description),
.init("https://site.example/", name: .url),
.init("en", name: .locale),
.init("nl_NL", name: .localeAlternate),
.init("de_DE", name: .localeAlternate),
.init("https://site.example/img/card.png", name: .image),
.init("2400", name: .imageWidth),
.init("1260", name: .imageHeight),