EVA-Notify/src/plain-text/TicketDetail.ts

134 lines
3.4 KiB
TypeScript

interface StepItem {
title: string;
}
type StatusStr = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7';
export interface TicketDetailText {
stepItems: Array<StepItem>;
createTicketMessage: string;
statusModifyPrefix: string;
statusModifyMessage: Map<StatusStr, string>;
descTitle: string;
info: {
title: string;
extra: string;
};
tookAway: string;
addToOreo: string;
addNote: string;
pick: string;
comment: {
title: string;
placeholder: string;
};
status: {
button: string;
title: string;
cancel: string;
status0: string;
status1: string;
status2: string;
status3: string;
status4: string;
status5: string;
status6: string;
status7: string;
};
}
export const ticketDetailZhCn: TicketDetailText = {
stepItems: [
{ title: '创建成功' },
{ title: '维修中' },
{ title: '待取回' },
{ title: '工单完成' },
],
createTicketMessage: '创建了维修',
statusModifyPrefix: '将维修状态更改为:',
statusModifyMessage: new Map<StatusStr, string>([
['0', '已创建/交接中'],
['1', '维修中'],
['2', '劝退待取回'],
['3', '劝退已取回'],
['4', '维修成功待取回'],
['5', '维修成功已取回'],
['6', '维修翻车待取回'],
['7', '维修翻车已取回'],
]),
descTitle: '问题描述',
info: {
title: '机主姓名',
extra: '联系方式',
},
tookAway: '我已取回',
addToOreo: '加入 Oreo',
addNote: '添加评论',
pick: '认领',
comment: {
title: '添加评论',
placeholder: '可以在这里交流机器情况、维修进度、提出问题~',
},
status: {
button: '改变工单状态',
title: '请选择要改变成为的状态',
cancel: '取消',
status0: '已创建/交接中',
status1: '维修中',
status2: '劝退待取回',
status3: '劝退已取回',
status4: '维修成功待取回',
status5: '维修成功已取回',
status6: '维修翻车待取回',
status7: '维修翻车已取回',
},
};
export const ticketDetailEnUs: TicketDetailText = {
stepItems: [
{ title: 'Created' },
{ title: 'Repairing' },
{ title: 'Finished' },
{ title: 'Retrieved' },
],
createTicketMessage: 'Created ticket',
statusModifyPrefix: 'Modified repair status to: ',
statusModifyMessage: new Map<StatusStr, string>([
['0', 'Created / Handovering'],
['1', 'Repairing'],
['2', 'Pending Retrieval (Refused)'],
['3', 'Retrieved (Refused)'],
['4', 'Pending Retrieval (Finished)'],
['5', 'Retrieved (Finished)'],
['6', 'Pending Retrieval (Failed)'],
['7', 'Retrieved (Failed)'],
]),
descTitle: 'Description',
info: {
title: 'Name',
extra: 'Contact',
},
tookAway: 'Already retrieved',
addToOreo: 'Add to Oreo',
addNote: 'Comment',
pick: 'Pick',
comment: {
title: 'Add Comment',
placeholder:
'You can exchange information the device, the progress of repairs, and ask questions here.',
},
status: {
button: 'Modify Status',
title: 'Please select the status you want to modify to',
cancel: 'Cancel',
status0: 'Created / Handovering',
status1: 'Repairing',
status2: 'Pending Retrieval (Refused)',
status3: 'Retrieved (Refused)',
status4: 'Pending Retrieval (Finished)',
status5: 'Retrieved (Finished)',
status6: 'Pending Retrieval (Failed)',
status7: 'Retrieved (Failed)',
},
};