using System.Resources;
namespace IPL.HRMS.Common.I18N
{
///
/// 数据验证消息国际化
///
public class ValidateI18N
{
private static readonly ResourceManager _resourceManager = new ResourceManager(typeof(ValidateI18N));
///
/// 必填
///
public static string Required => GetString("Required");
///
/// 最长
///
public static string Max => GetString("Max");
///
/// 最小
///
public static string Min => GetString("Min");
///
/// 电话号码
///
public static string PhoneNumber => GetString("PhoneNumber");
///
/// 邮箱
///
public static string Email => GetString("Email");
///
/// 日期格式
///
public static string DateFormat => GetString("Unknown");
///
/// 未知校验错误
///
public static string Unknown => GetString("Unknown");
///
/// 获取对应的I18N消息
///
///
///
public static string GetString(string name)
{
return _resourceManager.GetString(name);
}
}
}