[Refactor] (Huge Refactoring 2)

Consolidated all logic into category-specific files.
Renamed useTranslation from react-i18next to useI18n to avoid a name conflict with our own function.
This commit is contained in:
Sakamoto Shiina committed 2025-06-19 08:40:45 +09:00
1 parent 65b5ffb2fa
commit e480c373cd
100 files changed
+1334 -1525

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
// To avoid a name conflict with our own `useTranslation` function,
// rename the one from `react-i18next` to `useI18n`.
// This is aliased via `vite.config.js`, so it can be imported using `@useI18n`.
// Example:
// import { useI18n } from "@useI18n";
//
// export const useTranslation = () => {
// const { t } = useI18n();
// ...
// };
export { useTranslation as useI18n } from "react-i18next";