国际化支持中,目前已支持首页,Button按钮,FloatButon按钮,Icon图标
In the internationalization support, the homepage, button, FloatButon button, and Icon icon are currently supported
This commit is contained in:
+109
-4
@@ -4,7 +4,7 @@ namespace AntdUIDemo.Models
|
||||
{
|
||||
public class DataUtil
|
||||
{
|
||||
public static readonly Dictionary<string, List<MenuItems>> MenuItems = new Dictionary<string, List<MenuItems>>()
|
||||
public static readonly Dictionary<string, List<MenuItems>> MenuItems_zhcn = new Dictionary<string, List<MenuItems>>()
|
||||
{
|
||||
{ "通用", new List<MenuItems>
|
||||
{
|
||||
@@ -19,8 +19,7 @@ namespace AntdUIDemo.Models
|
||||
new MenuItems { Text = "FlowPanel 流动布局", Tag = "FlowPanel"},
|
||||
new MenuItems { Text = "GridPanel 网格布局", Tag = "GridPanel"},
|
||||
new MenuItems { Text = "Panel 面板", Tag = "Panel"},
|
||||
new MenuItems { Text = "StackPanel 堆叠布局", Tag = "StackPanel"},
|
||||
//new MenuItems { Text = "VirtualPanel 虚拟布局", Tag = "VirtualPanel"}
|
||||
new MenuItems { Text = "StackPanel 堆叠布局", Tag = "StackPanel"}
|
||||
}
|
||||
},
|
||||
{ "导航", new List<MenuItems>
|
||||
@@ -99,7 +98,7 @@ namespace AntdUIDemo.Models
|
||||
}
|
||||
};
|
||||
|
||||
public static readonly Dictionary<string, string> MenuIcons = new Dictionary<string, string>
|
||||
public static readonly Dictionary<string, string> MenuIcons_zhcn = new Dictionary<string, string>
|
||||
{
|
||||
{ "通用", "AppstoreOutlined" },
|
||||
{ "布局", "LayoutOutlined" },
|
||||
@@ -111,6 +110,112 @@ namespace AntdUIDemo.Models
|
||||
{ "其它", "SettingOutlined" }
|
||||
};
|
||||
|
||||
public static readonly Dictionary<string, List<MenuItems>> MenuItems_enus = new Dictionary<string, List<MenuItems>>()
|
||||
{
|
||||
{ "General", new List<MenuItems>
|
||||
{
|
||||
new MenuItems { Text = "Button" , Tag = "Button"},
|
||||
new MenuItems { Text = "FloatButton", Tag = "FloatButton"},
|
||||
new MenuItems { Text = "Icon", Tag = "Icon"},
|
||||
}
|
||||
},
|
||||
{ "Layout", new List<MenuItems>
|
||||
{
|
||||
new MenuItems { Text = "Divider", Tag = "Divider" },
|
||||
new MenuItems { Text = "FlowPanel", Tag = "FlowPanel"},
|
||||
new MenuItems { Text = "GridPanel", Tag = "GridPanel"},
|
||||
new MenuItems { Text = "Panel", Tag = "Panel"},
|
||||
new MenuItems { Text = "StackPanel", Tag = "StackPanel"}
|
||||
}
|
||||
},
|
||||
{ "Navigation", new List<MenuItems>
|
||||
{
|
||||
new MenuItems { Text = "Breadcrumb", Tag = "Breadcrumb"},
|
||||
new MenuItems { Text = "Dropdown", Tag = "Dropdown"},
|
||||
new MenuItems { Text = "Menu", Tag = "Menu"},
|
||||
new MenuItems { Text = "Pagination", Tag = "Pagination"},
|
||||
new MenuItems { Text = "Steps", Tag = "Steps"}
|
||||
}
|
||||
},
|
||||
{ "Data Entry", new List<MenuItems>
|
||||
{
|
||||
new MenuItems { Text = "Checkbox", Tag = "Checkbox"},
|
||||
new MenuItems { Text = "ColorPicker", Tag = "ColorPicker"},
|
||||
new MenuItems { Text = "DatePicker", Tag = "DatePicker"},
|
||||
new MenuItems { Text = "DatePickerRange", Tag = "DatePickerRange"},
|
||||
new MenuItems { Text = "Input", Tag = "Input"},
|
||||
new MenuItems { Text = "InputNumber", Tag = "InputNumber"},
|
||||
new MenuItems { Text = "Radio", Tag = "Radio"},
|
||||
new MenuItems { Text = "Rate", Tag = "Rate"},
|
||||
new MenuItems { Text = "Select", Tag = "Select"},
|
||||
new MenuItems { Text = "SelectMultiple", Tag = "SelectMultiple"},
|
||||
new MenuItems { Text = "Slider", Tag = "Slider"},
|
||||
new MenuItems { Text = "SliderRange", Tag = "SliderRange"},
|
||||
new MenuItems { Text = "Switch", Tag = "Switch"},
|
||||
new MenuItems { Text = "TimePicker", Tag = "TimePicker"},
|
||||
new MenuItems { Text = "UploadDragger", Tag = "UploadDragger"}
|
||||
}
|
||||
},
|
||||
{ "Data Display", new List<MenuItems>
|
||||
{
|
||||
new MenuItems { Text = "Avatar", Tag = "Avatar"},
|
||||
new MenuItems { Text = "Badge", Tag = "Badge"},
|
||||
new MenuItems { Text = "Calendar", Tag = "Calendar"},
|
||||
new MenuItems { Text = "Carousel", Tag = "Carousel"},
|
||||
new MenuItems { Text = "Collapse", Tag = "Collapse"},
|
||||
new MenuItems { Text = "Label", Tag = "Label"},
|
||||
new MenuItems { Text = "LabelTime", Tag = "LabelTime"},
|
||||
new MenuItems { Text = "Popover", Tag = "Popover"},
|
||||
new MenuItems { Text = "Preview", Tag = "Preview"},
|
||||
new MenuItems { Text = "Segmented", Tag = "Segmented"},
|
||||
new MenuItems { Text = "Table", Tag = "Table"},
|
||||
new MenuItems { Text = "Tabs", Tag = "Tabs"},
|
||||
new MenuItems { Text = "Tag", Tag = "Tag"},
|
||||
new MenuItems { Text = "Timeline", Tag = "Timeline"},
|
||||
new MenuItems { Text = "Tooltip", Tag = "Tooltip"},
|
||||
new MenuItems { Text = "Tree", Tag = "Tree"}
|
||||
}
|
||||
},
|
||||
{ "Feedback", new List<MenuItems>
|
||||
{
|
||||
new MenuItems { Text = "Alert", Tag = "Alert"},
|
||||
new MenuItems { Text = "Drawer", Tag = "Drawer"},
|
||||
new MenuItems { Text = "Message", Tag = "Message"},
|
||||
new MenuItems { Text = "Modal", Tag = "Modal"},
|
||||
new MenuItems { Text = "Notification", Tag = "Notification"},
|
||||
new MenuItems { Text = "Progress", Tag = "Progress"},
|
||||
new MenuItems { Text = "Spin", Tag = "Spin"}
|
||||
}
|
||||
},
|
||||
{ "Chat", new List<MenuItems>
|
||||
{
|
||||
new MenuItems { Text = "ChatList", Tag = "ChatList"},
|
||||
new MenuItems { Text = "MsgList", Tag = "MsgList"}
|
||||
}
|
||||
},
|
||||
{ "Other", new List<MenuItems>
|
||||
{
|
||||
new MenuItems { Text = "Battery", Tag = "Battery" },
|
||||
new MenuItems { Text = "ContextMenuStrip", Tag = "ContextMenuStrip" },
|
||||
new MenuItems { Text = "Image3D", Tag = "Image3D" },
|
||||
new MenuItems { Text = "PageHeader", Tag= "PageHeader"},
|
||||
new MenuItems { Text = "Signal", Tag = "Signal" }
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public static readonly Dictionary<string, string> MenuIcons_enus = new Dictionary<string, string>
|
||||
{
|
||||
{ "General", "AppstoreOutlined" },
|
||||
{ "Layout", "LayoutOutlined" },
|
||||
{ "Navigation", "CompressOutlined" },
|
||||
{ "Data Entry", "EditOutlined" },
|
||||
{ "Data Display", "BarChartOutlined" },
|
||||
{ "Feedback", "NotificationOutlined" },
|
||||
{ "Chat", "MessageOutlined" },
|
||||
{ "Other", "SettingOutlined" }
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user