From 1dee79e3ec6ec388b1e8070e7c8a411be22837c5 Mon Sep 17 00:00:00 2001 From: Last2014 Date: Tue, 26 May 2026 20:04:19 +0900 Subject: [PATCH] Del: i18n.ts --- src/lib/i18n.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/lib/i18n.ts diff --git a/src/lib/i18n.ts b/src/lib/i18n.ts deleted file mode 100644 index ae637e1..0000000 --- a/src/lib/i18n.ts +++ /dev/null @@ -1,28 +0,0 @@ -import i18next from "i18next"; -import config from "@/lib/config"; -import { parse as yamlParse } from "yaml"; -import { readFileSync } from "node:fs"; - -const translation = Object.fromEntries(Object.entries( - yamlParse(readFileSync(`${import.meta.dirname}/../../locales/ja.yaml`, "utf-8")) - ).map(([key, value]) => [ - key, - typeof value === "string" - ? value.trim() - : value, - ])); - -export default async function initI18n() { - await i18next.init({ - lng: "ja", - debug: config.debug, - resources: { - ja: { - translation, - }, - }, - interpolation: { - escapeValue: false, - }, - }); -}; \ No newline at end of file