using System.Resources; namespace ERP.Core.Resources { public class Core18N { private static readonly ResourceManager _resourceManager = new ResourceManager(typeof(Core18N)); /// /// token 失效 /// public static string? TokenValidate => GetString("TokenValidate"); /// /// 被踢下线 /// public static string? KickedOut => GetString("KickedOut"); /// /// 被顶下线 /// public static string? ConcurrentLogin => GetString("ConcurrentLogin"); /// /// 被顶下线 /// public static string? IdleTimeOut => GetString("IdleTimeOut"); /// /// 沒有權限 /// public static string? NoPermission => GetString("NoPermission"); /// /// 获取对应的I18N消息 /// /// /// public static string? GetString(string name) => _resourceManager.GetString(name); } }