File tree Expand file tree Collapse file tree 7 files changed +13
-14
lines changed
Expand file tree Collapse file tree 7 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 11import { ReactNode } from "react" ;
22import { generateArticleButton , Article } from "../article" ;
3- import useTranslation from "i18next " ;
3+ import useTranslation from "@/i18n/i18n " ;
44
55interface ArticleListProps {
66 articles : Article [ ] ;
Original file line number Diff line number Diff line change 11import "@/app/i18n/i18n" ;
2- import useTranslation from "i18next " ;
2+ import useTranslation from "@/i18n/i18n " ;
33import { getArticleIndexes , Article } from "./article" ;
44import "./article.css" ; // CSSファイルをインポート
55import ArticleList from "./components/list" ;
Original file line number Diff line number Diff line change 11"use client" ;
22import { useState } from "react" ;
3- import i18n from "i18next " ; // i18nextをインポート
3+ import i18n from "@/i18n/i18n " ; // i18nextをインポート
44
55export default function Footer ( ) {
66 const [ language , setLanguage ] = useState ( i18n . language || "en" ) ; // 初期言語を設定
Original file line number Diff line number Diff line change 11import "@/app/i18n/i18n" ;
2- import useTranslation from "i18next " ;
2+ import useTranslation from "@/i18n/i18n " ;
33export default function Home ( ) {
44 const { t } = useTranslation ;
55 return (
File renamed without changes.
Original file line number Diff line number Diff 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
2827export default i18n ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments