Просмотр исходного кода

:globe_with_meridians: title->label

visuddhinanda 3 лет назад
Родитель
Сommit
cfda3f81c1

+ 5 - 5
dashboard/src/components/studio/channel/ChannelTypeSelect.tsx

@@ -7,23 +7,23 @@ const Widget = () => {
 	const channelTypeOptions = [
 		{
 			value: "translation",
-			label: intl.formatMessage({ id: "channel.type.translation.title" }),
+			label: intl.formatMessage({ id: "channel.type.translation.label" }),
 		},
 		{
 			value: "nissaya",
-			label: intl.formatMessage({ id: "channel.type.nissaya.title" }),
+			label: intl.formatMessage({ id: "channel.type.nissaya.label" }),
 		},
 		{
 			value: "commentary",
-			label: intl.formatMessage({ id: "channel.type.commentary.title" }),
+			label: intl.formatMessage({ id: "channel.type.commentary.label" }),
 		},
 		{
 			value: "original",
-			label: intl.formatMessage({ id: "channel.type.original.title" }),
+			label: intl.formatMessage({ id: "channel.type.original.label" }),
 		},
 		{
 			value: "general",
-			label: intl.formatMessage({ id: "channel.type.general.title" }),
+			label: intl.formatMessage({ id: "channel.type.general.label" }),
 		},
 	];
 	return (

+ 5 - 5
dashboard/src/locales/zh-Hans/channel/index.ts

@@ -4,11 +4,11 @@ const items = {
 	"channel.name": "名称",
 	"channel.create.message.noname": "请输入版本名称",
 	"channel.type.all.title": "全部",
-	"channel.type.translation.title": "译文",
-	"channel.type.nissaya.title": "Nissaya",
-	"channel.type.commentary.title": "注疏",
-	"channel.type.original.title": "原文",
-	"channel.type.general.title": "通用",
+	"channel.type.translation.label": "译文",
+	"channel.type.nissaya.label": "Nissaya",
+	"channel.type.commentary.label": "注疏",
+	"channel.type.original.label": "原文",
+	"channel.type.general.label": "通用",
 	"channel.type.message.required": "请输入版本类型",
 	"channel.lang": "语言",
 	"channel.fields.lang.label": "语言",

+ 5 - 5
dashboard/src/pages/studio/channel/list.tsx

@@ -113,31 +113,31 @@ const Widget = () => {
 							},
 							translation: {
 								text: intl.formatMessage({
-									id: "channel.type.translation.title",
+									id: "channel.type.translation.label",
 								}),
 								status: "Success",
 							},
 							nissaya: {
 								text: intl.formatMessage({
-									id: "channel.type.nissaya.title",
+									id: "channel.type.nissaya.label",
 								}),
 								status: "Processing",
 							},
 							commentary: {
 								text: intl.formatMessage({
-									id: "channel.type.commentary.title",
+									id: "channel.type.commentary.label",
 								}),
 								status: "Default",
 							},
 							original: {
 								text: intl.formatMessage({
-									id: "channel.type.original.title",
+									id: "channel.type.original.label",
 								}),
 								status: "Default",
 							},
 							general: {
 								text: intl.formatMessage({
-									id: "channel.type.general.title",
+									id: "channel.type.general.label",
 								}),
 								status: "Default",
 							},

+ 2 - 2
dashboard/src/pages/studio/group/edit.tsx

@@ -68,13 +68,13 @@ const Widget = () => {
 							{
 								value: "translation",
 								label: intl.formatMessage({
-									id: "channel.type.translation.title",
+									id: "channel.type.translation.label",
 								}),
 							},
 							{
 								value: "nissaya",
 								label: intl.formatMessage({
-									id: "channel.type.nissaya.title",
+									id: "channel.type.nissaya.label",
 								}),
 							},
 						]}