Skip to content

Commit

Permalink
fix(@galactiks/astro-integration): get only language from locale inLa…
Browse files Browse the repository at this point in the history
…nguage string
  • Loading branch information
emmanuelgautier committed Oct 25, 2023
1 parent e92980a commit 34eafaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/adapters/astro/src/preset.mts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const integrationsPreset = (): AstroIntegration[] => [
news: page.type === 'Article' && {
publication: {
name: getConfig().webManifest.name,
language: getDefaultLanguage(),
language: (page.inLanguage && getDefaultLanguage())?.substring(0, 2).toLowerCase(),
},

publication_date: isValid(page.datePublished) ? page.datePublished.toISOString() : undefined,
Expand Down

0 comments on commit 34eafaf

Please sign in to comment.