workflow multi languages

This commit is contained in:
yoan
2024-11-11 15:50:36 +08:00
parent 327c83cbc8
commit 1ea0ba18cd
32 changed files with 312 additions and 152 deletions

View File

@@ -30,7 +30,11 @@ export type NotifyChannel =
| NotifyChannelMail
| NotifyChannelBark;
export const channels = [
type ChannelLabel = {
name: string;
label: string;
};
export const channels: ChannelLabel[] = [
{
name: "dingtalk",
label: "common.provider.dingtalk",
@@ -61,6 +65,8 @@ export const channels = [
},
];
export const channelLabelMap: Map<string, ChannelLabel> = new Map(channels.map((item) => [item.name, item]));
export type NotifyChannelDingTalk = {
accessToken: string;
secret: string;