Skip to content

Commit 0ed1d6f

Browse files
committed
[i18n] Fix file name for i18n config
1 parent 7523d3a commit 0ed1d6f

File tree

12 files changed

+11
-11
lines changed

12 files changed

+11
-11
lines changed

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import lunaria from "@lunariajs/starlight";
2020
import { sidebar } from "./astro.sidebar.ts";
2121
import { ENV } from "./src/lib/env";
2222
import { ogImagesIntegration } from "./src/integrations/ogImages";
23-
import { SUPPORTED_LANGUAGES, SITE_TITLES } from "./src/config/18n";
23+
import { SUPPORTED_LANGUAGES, SITE_TITLES } from "./src/config/i18n.ts";
2424
import { firebaseIntegration } from "./src/integrations/firebase";
2525
import { remarkClientOnly } from "./src/plugins";
2626
// import { isMoveReferenceEnabled } from "./src/utils/isMoveReferenceEnabled";

scripts/generate-middleware-matcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const rootDir = path.resolve(__dirname, "..");
2222
async function getSupportedLanguages() {
2323
try {
2424
// Dynamically import the languages from config file
25-
const { SUPPORTED_LANGUAGES } = await import("../src/config/18n.ts");
25+
const { SUPPORTED_LANGUAGES } = await import("../src/config/i18n.ts");
2626
return SUPPORTED_LANGUAGES;
2727
} catch (error) {
2828
console.error(

src/components/Breadcrumbs.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { getPathMaps } from "../loaders/breadcrumbsLoader";
33
44
// Extract locale from the URL path
5-
import { SUPPORTED_LANGUAGES } from "~/config/18n";
5+
import { SUPPORTED_LANGUAGES } from "~/config/i18n";
66
77
// --- Component Props ---
88
interface Props {

src/components/Move404/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import { Code } from "@astrojs/starlight/components";
33
import defaultCode from "./code/404.move?raw";
4-
import { SUPPORTED_LANGUAGES } from "~/config/18n";
4+
import { SUPPORTED_LANGUAGES } from "~/config/i18n";
55
66
// Create a type from the supported language codes (excluding 'en' which uses default)
77
type SupportedLang = Exclude<(typeof SUPPORTED_LANGUAGES)[number]["code"], "en">;
File renamed without changes.

src/loaders/breadcrumbsLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getCollection } from "astro:content";
2-
import { SUPPORTED_LANGUAGES } from "~/config/18n";
2+
import { SUPPORTED_LANGUAGES } from "~/config/i18n";
33

44
// Define the return type for the path maps
55
export interface PathMaps {

src/middlewares/i18n-redirect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SUPPORTED_LANGUAGES } from "../config/18n";
1+
import { SUPPORTED_LANGUAGES } from "../config/i18n";
22

33
const LANGUAGE_CODES = SUPPORTED_LANGUAGES.map((lang) => lang.code);
44
const DEFAULT_LANG = "en";

src/pages/[...lang]/move-reference.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getCollection } from "astro:content";
33
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
44
import { Tabs, TabItem } from "@astrojs/starlight/components";
55
import FallbackContentNotice from "@astrojs/starlight/components/FallbackContentNotice.astro";
6-
import { SUPPORTED_LANGUAGES } from "~/config/18n";
6+
import { SUPPORTED_LANGUAGES } from "~/config/i18n";
77
import { MOVE_REFERENCE_BRANCHES, type MoveNetwork } from "~/content.config";
88
import { isMoveReferenceEnabled } from "~/utils/isMoveReferenceEnabled";
99
import MoveReferenceDisabled from "~/components/MoveReferenceDisabled.astro";

src/pages/[...lang]/move-reference/[...slug].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
33
import FallbackContentNotice from "@astrojs/starlight/components/FallbackContentNotice.astro";
44
import { getCollection, render } from "astro:content";
5-
import { SUPPORTED_LANGUAGES } from "~/config/18n";
5+
import { SUPPORTED_LANGUAGES } from "~/config/i18n";
66
import { isMoveReferenceEnabled } from "~/utils/isMoveReferenceEnabled";
77
88
export async function getStaticPaths() {

src/pages/[...lang]/move-reference/[network]/[framework].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { getCollection } from "astro:content";
33
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
44
import FallbackContentNotice from "@astrojs/starlight/components/FallbackContentNotice.astro";
5-
import { SUPPORTED_LANGUAGES } from "~/config/18n";
5+
import { SUPPORTED_LANGUAGES } from "~/config/i18n";
66
import LinkList from "~/components/LinkList.astro";
77
import { isMoveReferenceEnabled } from "~/utils/isMoveReferenceEnabled";
88

0 commit comments

Comments
 (0)