Skip to content

Commit 88c5dde

Browse files
committed
feat: add all languages to i18n config
Signed-off-by: ItsNeil17 <neil@willofsteel.me>
1 parent 9aac60a commit 88c5dde

2 files changed

Lines changed: 26 additions & 2 deletions

File tree

src/app/[lang]/layout.tsx

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,31 @@ const { provider } = defineI18nUI(i18n, {
1010
},
1111
"es-ES": {
1212
displayName: "Español",
13-
search: "Buscar",
13+
},
14+
"af-ZA": {
15+
displayName: "Afrikaans",
16+
},
17+
"de-DE": {
18+
displayName: "Deutsch",
19+
},
20+
"en-ID": {
21+
displayName: "English (Indonesia)",
22+
},
23+
"fr-FR": {
24+
displayName: "Français",
25+
},
26+
"hi-IN": {
27+
displayName: "हिन्दी",
28+
search: "खोजें",
29+
},
30+
"pt-BR": {
31+
displayName: "Português (Brasil)",
32+
},
33+
"ru-RU": {
34+
displayName: "Русский",
35+
},
36+
"tr-TR": {
37+
displayName: "Türkçe",
1438
},
1539
},
1640
});

src/lib/i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import { defineI18n } from "fumadocs-core/i18n";
22

33
export const i18n = defineI18n({
44
defaultLanguage: "en",
5-
languages: ["en", "es-ES"],
5+
languages: ["en", "es-ES", "de-DE", "af-ZA", "en-ID", "fr-FR", "hi-IN", "pt-BR", "ru-RU", "tr-TR"],
66
parser: "dir",
77
});

0 commit comments

Comments
 (0)