refactor: centralize localization keys and remove runtime Chinese literals

This commit is contained in:
2026-06-23 21:19:42 +08:00
parent 34c99701ca
commit 036243fd4a
32 changed files with 873 additions and 403 deletions
+4
View File
@@ -17,11 +17,15 @@ public static class I18N
/// </summary>
public static Action OnInitialized;
private static bool _initCalled;
/// <summary>
/// Registers the localization hooks with Harmony.
/// </summary>
public static void Init()
{
if (_initCalled) return;
_initCalled = true;
Harmony.CreateAndPatchAll(typeof(I18N));
}