[Update] Plugins: Add localization system.

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

No files matched your search

+3 -1
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;
}