[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

@@ -50,6 +50,7 @@ export const usePlugins = () => {
const { asyncTauriFetchGithub } = useFetch();
const { i18n } = useTranslation();
const generatePluginContext = (downloaded_plugin_info) => {
const plugin_context = {
@@ -69,7 +70,8 @@ export const usePlugins = () => {
},
createAtomWithHook: (...args) => createAtomWithHook(...args),
logics: { ...logics_common, ...logics_configs, ...logics_main }
logics: { ...logics_common, ...logics_configs, ...logics_main },
i18n: i18n,
};
return plugin_context;
}