[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
2025-06-19 08:40:45 +09:00
parent 65b5ffb2fa
commit e480c373cd
100 changed files with 1334 additions and 1525 deletions

View File

@@ -1,11 +1,11 @@
import { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { useUiLanguage } from "@logics_configs";
import { useI18n } from "@useI18n";
import { useAppearance } from "@logics_configs";
export const UiLanguageController = () => {
const { currentUiLanguage } = useUiLanguage();
const { i18n } = useTranslation();
const { currentUiLanguage } = useAppearance();
const { i18n } = useI18n();
useEffect(() => {
i18n.changeLanguage(currentUiLanguage.data);