Skip to content

Commit

Permalink
Fix server side translation loading
Browse files Browse the repository at this point in the history
  • Loading branch information
TomRomeo committed Nov 14, 2023
1 parent 22597d6 commit f550d63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/pages/deck/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { TabBar } from "../../../components/navigation/Tabs/TabBar";
import { TabHeader } from "../../../components/navigation/Tabs/TabHeader";
import { authedFetch } from "../../../util/reauth";

export const getStaticProps: GetStaticProps = async (ctx) => {
export const getServerSideProps: GetStaticProps = async (ctx) => {
const translation = await loadCatalog(ctx.locale!);
return {
props: {
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/deck/[id]/learn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Group } from "../../../types/Group";
import { GroupRole } from "../../../types/GroupRole";
import { authedFetch } from "../../../util/reauth";

export const getStaticProps: GetStaticProps = async (ctx) => {
export const getServerSideProps: GetStaticProps = async (ctx) => {
const translation = await loadCatalog(ctx.locale!);
return {
props: {
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/group/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { TabBar } from "../../../components/navigation/Tabs/TabBar";
import { TabHeader } from "../../../components/navigation/Tabs/TabHeader";
import { authedFetch } from "../../../util/reauth";

export const getStaticProps: GetStaticProps = async (ctx) => {
export const getServerSideProps: GetStaticProps = async (ctx) => {
const translation = await loadCatalog(ctx.locale!);
return {
props: {
Expand Down

0 comments on commit f550d63

Please sign in to comment.