Skip to content

Commit

Permalink
fix: add event translations to the article page (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
melniiv committed Dec 12, 2022
1 parent 33a0f09 commit 8a21149
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/events-helsinki/src/pages/articles/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export async function getStaticProps(
return {
props: {
initialApolloState: apolloClient.cache.extract(),
...(await serverSideTranslationsWithCommon(locale, ['cms'])),
...(await serverSideTranslationsWithCommon(locale, ['cms', 'event'])),
article,
breadcrumbs,
collections: getCollections(article.modules ?? []),
Expand Down
2 changes: 1 addition & 1 deletion apps/hobbies-helsinki/src/pages/articles/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export async function getStaticProps(
return {
props: {
initialApolloState: apolloClient.cache.extract(),
...(await serverSideTranslationsWithCommon(locale, ['cms'])),
...(await serverSideTranslationsWithCommon(locale, ['cms', 'event'])),
article,
breadcrumbs,
collections: getCollections(article.modules ?? []),
Expand Down
2 changes: 1 addition & 1 deletion apps/sports-helsinki/src/pages/articles/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export async function getStaticProps(
return {
props: {
initialApolloState: apolloClient.cache.extract(),
...(await serverSideTranslationsWithCommon(locale, ['cms'])),
...(await serverSideTranslationsWithCommon(locale, ['cms', 'event'])),
article,
breadcrumbs,
collections: getCollections(article.modules ?? []),
Expand Down

0 comments on commit 8a21149

Please sign in to comment.