Skip to content

Commit c8ca4ce

Browse files
committed
Add NotifyDisplayLanguageChanged
1 parent f5bcbc0 commit c8ca4ce

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

HomeLive.Plugins/HomePlugin.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace HomeLive.Plugins;
55

66
public class HomePlugin : IPlugin
77
{
8-
public const string Version = "3.2.2";
8+
public const string Version = "3.2.3";
99
public string Name => nameof(HomePlugin);
1010
public int Priority => 1;
1111

@@ -82,5 +82,12 @@ public void NotifySaveLoaded()
8282
Plugin.Enabled = false;
8383
}
8484

85+
public void NotifyDisplayLanguageChanged(string language)
86+
{
87+
Language = language;
88+
TranslateDictionary(language);
89+
TranslatePlugins();
90+
}
91+
8592
public bool TryLoadFile(string path) => DumperForm.TryLoadFile(path, SaveFileEditor, PKMEditor);
8693
}

0 commit comments

Comments
 (0)