From 92de889facd2b00b3ad99447463bc2f19b01094e Mon Sep 17 00:00:00 2001 From: SillyStar-Github <90102598+SillyStar-Github@users.noreply.github.com> Date: Thu, 2 Oct 2025 20:18:53 -0400 Subject: [PATCH] Update Utils.cs --- MelonLoader/Utils.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MelonLoader/Utils.cs b/MelonLoader/Utils.cs index b5c3625..a5ed03b 100644 --- a/MelonLoader/Utils.cs +++ b/MelonLoader/Utils.cs @@ -248,6 +248,14 @@ namespace PvZ_Fusion_Translator } } + public static bool CheckForUntranslatedText(string text) + { + Regex regex = new("\\p{IsCJKUnifiedIdeographs}+"); + Match match = regex.Match(text); + + return match.Success; + } + #if MULTI_LANGUAGE internal static void ChangeLanguage(string language) {