mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-08-06 00:20:20 +08:00
refactor: centralize localization keys and remove runtime Chinese literals
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user