Skip to content

Commit 53d9cb4

Browse files
committed
feat: Implement i18n system #1
1 parent be96196 commit 53d9cb4

22 files changed

Lines changed: 2439 additions & 737 deletions

nuxt.config.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Created Date: 2025-09-08 17:37:49
55
* Author: 3urobeat
66
*
7-
* Last Modified: 2026-02-10 20:34:58
7+
* Last Modified: 2026-03-15 21:27:47
88
* Modified By: 3urobeat
99
*
1010
* Copyright (c) 2025 - 2026 3urobeat <https://github.com/3urobeat>
@@ -76,6 +76,18 @@ export default defineNuxtConfig({
7676
},
7777

7878
modules: [
79-
"@vueuse/nuxt"
79+
"@vueuse/nuxt",
80+
"@nuxtjs/i18n"
8081
],
82+
83+
i18n: {
84+
locales: [
85+
{ code: "en", language: "en-US", file: "en.json" },
86+
],
87+
// When enabled, this adds a lang prefix to every route name. This causes errors due to the re-route above and breaks my route detection though, so we disable it.
88+
strategy: "no_prefix",
89+
defaultLocale: "en",
90+
restructureDir: "src/i18n"
91+
}
92+
8193
});

0 commit comments

Comments
 (0)