64 lines
1.5 KiB
TypeScript
64 lines
1.5 KiB
TypeScript
interface StepItem {
|
|
title: string;
|
|
}
|
|
|
|
type StatusStr = '1' | '2' | '3' | '4' | '5';
|
|
|
|
export interface TicketDetailText {
|
|
stepItems: Array<StepItem>;
|
|
createTicketMessage: string;
|
|
statusModifyPrefix: string;
|
|
statusModifyMessage: Map<StatusStr, string>;
|
|
descTitle: string;
|
|
tookAway: string;
|
|
addToOreo: string;
|
|
addNote: string;
|
|
pick: string;
|
|
}
|
|
|
|
export const ticketDetailZhCn: TicketDetailText = {
|
|
stepItems: [
|
|
{ title: '创建成功' },
|
|
{ title: '维修中' },
|
|
{ title: '待取回' },
|
|
{ title: '工单完成' },
|
|
],
|
|
createTicketMessage: '创建了维修',
|
|
statusModifyPrefix: '将维修状态更改为:',
|
|
statusModifyMessage: new Map<StatusStr, string>([
|
|
['1', '维修中'],
|
|
['2', '2(?)'],
|
|
['3', '3(?)'],
|
|
['4', '维修成功待取回'],
|
|
['5', '维修成功已取回'],
|
|
]),
|
|
descTitle: '问题描述',
|
|
tookAway: '已取回',
|
|
addToOreo: '加入 Oreo',
|
|
addNote: '添加评论',
|
|
pick: '认领',
|
|
};
|
|
|
|
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>([
|
|
['1', 'Repairing'],
|
|
['2', '2(?)'],
|
|
['3', '3(?)'],
|
|
['4', 'Device to be retrieved'],
|
|
['5', 'Ticket finished'],
|
|
]),
|
|
descTitle: 'Problem description',
|
|
tookAway: 'Already retrieved',
|
|
addToOreo: 'Add to Oreo',
|
|
addNote: 'Comment',
|
|
pick: 'Pick',
|
|
};
|