Skip to content

Commit 650356a

Browse files
Merge pull request #4 from notionpresso/fix/multi-language-support
fix : multi language support
2 parents b0ffaef + 0797a2b commit 650356a

16 files changed

+45
-13
lines changed

app/[lang]/guide/[group]/[slug]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ interface GuidePageProps {
1616

1717
// Generate static params at build time
1818
export async function generateStaticParams() {
19-
const langs = ["en", "ko"]; // Replace with your supported languages
19+
const supportedLanguages = ["en", "ko"];
2020
const params: GuidePageProps["params"][] = [];
2121

22-
for (const lang of langs) {
22+
for (const lang of supportedLanguages) {
2323
const allDocuments = getAllDocuments(lang);
2424
allDocuments.forEach((doc) => {
2525
params.push({
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)