// // // using System.Resources; namespace ERP.Framework.Resource { public class FrameworkI18N { private static readonly ResourceManager _resourceManager = new ResourceManager(typeof(FrameworkI18N)); /// /// 无法获取当前Ip /// public static string? NoIP => GetString("NoIP"); /// /// token 失效 /// public static string? TokenValidate => GetString("TokenValidate"); /// /// 长时间未操作 /// public static string? IdleTimeOut => GetString("IdleTimeOut"); /// /// 被踢下线 /// public static string? KickedOut => GetString("KickedOut"); /// /// 被顶下线 /// public static string? ConcurrentLogin => GetString("ConcurrentLogin"); /// /// token 失效 /// public static string? NoPermission => GetString("NoPermission"); /// /// 无法获得当前用户 /// public static string? NoUser => GetString("NoUser"); /// /// 获取对应的I18N消息 /// /// /// public static string? GetString(string name) { return _resourceManager.GetString(name); } } }