public static void UILabelSetTextHook(ref string value, UILabel __instance) { //Logger.Log(LogLevel.Debug, string.Format("[{0}][{1}] => {2}", __instance.parent.name, __instance.name, value)); string domain = TranslationDomain.GetLabelTranslationDomain(__instance); value = TextTranslator.Translate(domain, value); }
public void Awake() { TranslationDomain.Initialize(); LoadTranslations(); Hooks.InstallHooks(); }