IsLeft
property",
+ "AlternateTitle": "Alternate presentations",
+ "AlternateIntro": "内容在时间轴两侧轮流出现",
+ "AlternateP": "Control the alternating timeline left and right by setting the IsAlternate
property",
+ "DispalyCustomComponentTitle": "Show custom components",
+ "DispalyCustomComponentIntro": "Custom components are displayed on the timeline",
+ "DispalyCustomComponentP": "Control the custom components that the timeline displays by setting the CustomerComponent
of the TimelineItem
",
+ "SelectedItem1": "Positive order",
+ "SelectedItem2": "Reverse order",
+ "TimelineItemContent1": "Creation time",
+ "TimelineItemContent2": "Approved",
+ "TimelineItemContent3": "The event starts on schedule",
+ "TimelineItemContent4": "The default style of the node",
+ "TimelineItemContent5": "Support for custom colors",
+ "TimelineItemContent6": "Icons are supported",
+ "Description1": "Real-time output",
+ "Description2": "Counter",
+ "Description3": "Weather forecast information",
+ "Items": "A collection of data",
+ "IsReverse": "Whether to display in reverse order",
+ "IsLeft": "Whether the left side presents content",
+ "IsAlternate": "Whether to alternate the content",
+ "Color": "Node color",
+ "Content": "The body of the content",
+ "Icon": "Node icon",
+ "Description": "The node description text",
+ "Component": "Node custom components",
+ "AttributeTitle": "TimelineItem attributes"
+ },
"BootstrapBlazor.Shared.Components.DemoBlock": {
"Title": "",
"SubTitle": "Demo"
diff --git a/src/BootstrapBlazor.Shared/Locales/zh.json b/src/BootstrapBlazor.Shared/Locales/zh.json
index a031c35eb..fdf0f5b93 100644
--- a/src/BootstrapBlazor.Shared/Locales/zh.json
+++ b/src/BootstrapBlazor.Shared/Locales/zh.json
@@ -2293,7 +2293,46 @@
"Icon": "图标",
"ShowDismiss": "关闭按钮",
"OnDismiss": "关闭标签回调方法"
- }
+ },
+ "BootstrapBlazor.Shared.Samples.Timelines": {
+ "Title": "Timeline 时间线",
+ "SubTitle": "可视化地呈现时间流信息",
+ "BasicUsageTitle": "基本用法",
+ "BasicUsageIntro": "Timeline 可拆分成多个按照时间戳正序或倒序排列的 activity,时间戳是其区分于其他控件的重要特征,使⽤时注意与 Steps 步骤条等区分。",
+ "BasicUsageP": "排序:",
+ "CutomNodeStyleTitle": "⾃定义节点样式",
+ "CutomNodeStyleIntro": "可根据实际场景⾃定义节点颜⾊,或直接使⽤图标。",
+ "LeftTitle": "左侧展现",
+ "LeftIntro": "内容在时间轴左侧轮流出现",
+ "LeftP": "通过设置 IsLeft
属性来控制内容出现在时间线左侧",
+ "AlternateTitle": "交替展现",
+ "AlternateIntro": "内容在时间轴两侧轮流出现",
+ "AlternateP": "通过设置 IsAlternate
属性来控制时间线左右交替展现",
+ "DispalyCustomComponentTitle": "展现自定义组件",
+ "DispalyCustomComponentIntro": "时间轴上展现自定义组件",
+ "DispalyCustomComponentP": "通过设置 TimelineItem
的 CustomerComponent
来控制时间线展现的自定义组件",
+ "SelectedItem1": "正序",
+ "SelectedItem2": "倒序",
+ "TimelineItemContent1": "创建时间",
+ "TimelineItemContent2": "通过审核",
+ "TimelineItemContent3": "活动按期开始",
+ "TimelineItemContent4": "默认样式的节点",
+ "TimelineItemContent5": "支持自定义颜色",
+ "TimelineItemContent6": "支持使用图标",
+ "Description1": "实时输出",
+ "Description2": "计数器",
+ "Description3": "天气预报信息",
+ "Items": "数据集合",
+ "IsReverse": "是否倒序显示",
+ "IsLeft": "是否左侧展现内容",
+ "IsAlternate": "是否交替展现内容",
+ "Color": "节点颜色",
+ "Content": "内容正文",
+ "Icon": "节点图标",
+ "Description": "节点描述文字",
+ "Component": "节点自定义组件",
+ "AttributeTitle": "TimelineItem 属性"
+ },
"BootstrapBlazor.Shared.Components.DemoBlock": {
"Title": "未设置",
"SubTitle": "示例"
diff --git a/src/BootstrapBlazor.Shared/Samples/Timelines.razor b/src/BootstrapBlazor.Shared/Samples/Timelines.razor
index 543205db8..f4a6cac7b 100644
--- a/src/BootstrapBlazor.Shared/Samples/Timelines.razor
+++ b/src/BootstrapBlazor.Shared/Samples/Timelines.razor
@@ -1,36 +1,37 @@
@page "/timelines"
+@inject IStringLocalizer通过设置 IsLeft
属性来控制内容出现在时间线左侧
@((MarkupString)Localizer["LeftP"].Value)
通过设置 IsAlternate
属性来控制时间线左右交替展现
@((MarkupString)Localizer["AlternateP"].Value)
通过设置 TimelineItem
的 CustomerComponent
来控制时间线展现的自定义组件
@((MarkupString)Localizer["DispalyCustomComponentP"].Value)