FrameworkI18N.cs 635 B

123456789101112131415161718192021222324
  1. using System.Resources;
  2. namespace IPL.HRMS.Common.I18n
  3. {
  4. public class FrameworkI18N
  5. {
  6. private static readonly ResourceManager _resourceManager = new ResourceManager(typeof(FrameworkI18N));
  7. /// <summary>
  8. /// 必填
  9. /// </summary>
  10. public static string NotConnect => GetString("Grpc.NotConnect");
  11. /// <summary>
  12. /// 获取对应的I18N消息
  13. /// </summary>
  14. /// <param name="name"></param>
  15. /// <returns></returns>
  16. public static string GetString(string name)
  17. {
  18. return _resourceManager.GetString(name);
  19. }
  20. }
  21. }