Update Utils.cs
This commit is contained in:
parent
ee1a0ec8e1
commit
92de889fac
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue