Skip to content

Commit 4c76781

Browse files
moved files
1 parent 7d5e917 commit 4c76781

File tree

7 files changed

+13
-14
lines changed

7 files changed

+13
-14
lines changed

src/app/article/components/list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ReactNode } from "react";
22
import { generateArticleButton, Article } from "../article";
3-
import useTranslation from "i18next";
3+
import useTranslation from "@/i18n/i18n";
44

55
interface ArticleListProps {
66
articles: Article[];

src/app/article/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import "@/app/i18n/i18n";
2-
import useTranslation from "i18next";
2+
import useTranslation from "@/i18n/i18n";
33
import { getArticleIndexes, Article } from "./article";
44
import "./article.css"; // CSSファイルをインポート
55
import ArticleList from "./components/list";

src/app/layout/footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22
import { useState } from "react";
3-
import i18n from "i18next"; // i18nextをインポート
3+
import i18n from "@/i18n/i18n"; // i18nextをインポート
44

55
export default function Footer() {
66
const [language, setLanguage] = useState(i18n.language || "en"); // 初期言語を設定

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import "@/app/i18n/i18n";
2-
import useTranslation from "i18next";
2+
import useTranslation from "@/i18n/i18n";
33
export default function Home() {
44
const { t } = useTranslation;
55
return (
File renamed without changes.
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@ const resources = {
1414
};
1515

1616
// i18nextの初期化
17-
i18n
18-
.init({
19-
resources, // リソースを設定
20-
lng: "ja", // デフォルト言語を日本語に設定
21-
fallbackLng: "en", // フォールバック言語を英語に設定
22-
interpolation: {
23-
escapeValue: false, // ReactはXSS対策済み
24-
},
25-
debug: true, // デバッグモードを有効化(必要に応じて削除)
26-
});
17+
i18n.init({
18+
resources, // リソースを設定
19+
lng: "ja", // デフォルト言語を日本語に設定
20+
fallbackLng: "en", // フォールバック言語を英語に設定
21+
interpolation: {
22+
escapeValue: false, // ReactはXSS対策済み
23+
},
24+
debug: true, // デバッグモードを有効化(必要に応じて削除)
25+
});
2726

2827
export default i18n;
File renamed without changes.

0 commit comments

Comments
 (0)