[Update] Plugins: Add localization system.

This commit is contained in:
Sakamoto Shiina
2025-04-26 01:55:28 +09:00
parent 249c686442
commit 819783ea09
10 changed files with 45 additions and 7 deletions

View File

@@ -1,10 +1,13 @@
import { initStore, StoreContext } from "@plugin_store";
import { initI18n } from "@initI18n";
import { SubtitleSystemContainer } from "./subtitle_system_container/SubtitleSystemContainer";
import { SubtitlesController } from "./subtitle_system_container/_controllers/SubtitlesController.jsx";
export const init = (plugin_context) => {
initStore(plugin_context.createAtomWithHook);
const { logics } = plugin_context;
const { createAtomWithHook, i18n, logics } = plugin_context;
initStore(createAtomWithHook);
initI18n(i18n);
const EntryComponents = () => {
return (