Skip to content

Commit 36c7748

Browse files
committed
Try to adjust locale orders
1 parent 40ddade commit 36c7748

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

pages/404/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const getStaticProps: GetStaticProps = async ({ locale }) => {
3535

3636
return {
3737
props: {
38-
...(await serverSideTranslations(actualLocale ?? "it", ["common", "seo", "notFound"])),
38+
...(await serverSideTranslations(actualLocale ?? "it", ["seo", "common", "notFound"])),
3939
},
4040
}
4141
}

pages/about/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const getServerSideProps: GetServerSideProps = async ({ locale }) => {
6565

6666
return {
6767
props: {
68-
...(await serverSideTranslations(actualLocale, ["seo", "about", "common"])),
68+
...(await serverSideTranslations(actualLocale, ["seo", "common", "about"])),
6969
founders,
7070
cdaMembers,
7171
},

pages/degrees/[slug].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export const getServerSideProps: GetServerSideProps<DegreePageProps> = async ({
199199
admins: adminsResult.value ?? [],
200200
representatives: representativesResult.value ?? [],
201201
mainGroup,
202-
...(await serverSideTranslations(actualLocale, ["seo", "degree", "common"])),
202+
...(await serverSideTranslations(actualLocale, ["seo", "common", "degree"])),
203203
},
204204
notFound: degree === undefined,
205205
}

pages/rules/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const RulesPage = () => {
7171
export const getStaticProps: GetStaticProps = async ({ locale }) => {
7272
return {
7373
props: {
74-
...(await serverSideTranslations(locale ?? "it", ["seo", "rules", "common"])),
74+
...(await serverSideTranslations(locale ?? "it", ["seo", "common", "rules"])),
7575
},
7676
}
7777
}

pages/search/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export const getServerSideProps: GetServerSideProps<SearchPageProps> = async (co
124124
groups,
125125
associations,
126126
degrees,
127-
...(await serverSideTranslations(locale, ["seo", "search", "common"])),
127+
...(await serverSideTranslations(locale, ["seo", "common", "search"])),
128128
},
129129
notFound: degrees?.length === 0 && groups?.length === 0 && associations?.length === 0,
130130
}

0 commit comments

Comments
 (0)