interface StepItem { title: string; } type StatusStr = '1' | '2' | '3' | '4' | '5'; export interface TicketDetailText { stepItems: Array; createTicketMessage: string; statusModifyPrefix: string; statusModifyMessage: Map; descTitle: string; infoTitle: 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; }; } export const ticketDetailZhCn: TicketDetailText = { stepItems: [ { title: '创建成功' }, { title: '维修中' }, { title: '待取回' }, { title: '工单完成' }, ], createTicketMessage: '创建了维修', statusModifyPrefix: '将维修状态更改为:', statusModifyMessage: new Map([ ['1', '维修中'], ['2', '2(?)'], ['3', '3(?)'], ['4', '维修成功待取回'], ['5', '维修成功已取回'], ]), descTitle: '问题描述', infoTitle: '机主信息', tookAway: '我已取回', addToOreo: '加入 Oreo', addNote: '添加评论', pick: '认领', comment: { title: '添加评论', placeholder: '可以在这里交流机器情况、维修进度、提出问题~', }, status: { button: '改变工单状态', title: '请选择要改变成为的状态', cancel: '取消', status0: '', status1: '', status2: '', status3: '', status4: '', status5: '', }, }; export const ticketDetailEnUs: TicketDetailText = { stepItems: [ { title: 'Created' }, { title: 'Repairing' }, { title: 'Finished' }, { title: 'Retrieved' }, ], createTicketMessage: 'Created ticket', statusModifyPrefix: 'Modified repair status to: ', statusModifyMessage: new Map([ ['1', 'Repairing'], ['2', '2(?)'], ['3', '3(?)'], ['4', 'Device to be retrieved'], ['5', 'Ticket finished'], ]), descTitle: 'Description', infoTitle: '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: '', status1: '', status2: '', status3: '', status4: '', status5: '', }, };