Hooks.cs 437 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace DynamicTranslationLoader
  6. {
  7. public static class Hooks
  8. {
  9. public static void LabelTextHook(ref string value)
  10. {
  11. value = DynamicTranslator.Translate(value);
  12. }
  13. public static void SetTextHook(ref string text)
  14. {
  15. text = DynamicTranslator.Translate(text);
  16. }
  17. }
  18. }