import { createTomlTranslator } from "../../../common/core/i18n";

// eslint-disable-next-line import/no-unresolved
import commonEnRaw from "../../../common/locales/en.toml?raw";
// eslint-disable-next-line import/no-unresolved
import commonKoRaw from "../../../common/locales/ko.toml?raw";
// eslint-disable-next-line import/no-unresolved
import enRaw from "../locales/en.toml?raw";
// Vite ?raw import는 런타임 상수로 번들됩니다.
// eslint-disable-next-line import/no-unresolved
import koRaw from "../locales/ko.toml?raw";

export const t = createTomlTranslator(
  {
    ko: [commonKoRaw, koRaw],
    en: [commonEnRaw, enRaw],
  },
  {
    normalizeEscapedNewlines: true,
  },
);
