add ticket detail localization
This commit is contained in:
@@ -2,8 +2,13 @@ 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>;
|
||||
}
|
||||
|
||||
export const ticketDetailZhCn: TicketDetailText = {
|
||||
@@ -13,6 +18,15 @@ export const ticketDetailZhCn: TicketDetailText = {
|
||||
{ title: '待取回' },
|
||||
{ title: '工单完成' },
|
||||
],
|
||||
createTicketMessage: '创建了维修',
|
||||
statusModifyPrefix: '将维修状态更改为:',
|
||||
statusModifyMessage: new Map<StatusStr, string>([
|
||||
['1', '维修中'],
|
||||
['2', '2(?)'],
|
||||
['3', '3(?)'],
|
||||
['4', '维修成功待取回'],
|
||||
['5', '维修成功已取回'],
|
||||
]),
|
||||
};
|
||||
|
||||
export const ticketDetailEnUs: TicketDetailText = {
|
||||
@@ -22,4 +36,13 @@ export const ticketDetailEnUs: TicketDetailText = {
|
||||
{ title: 'Take home' },
|
||||
{ title: 'Finished' },
|
||||
],
|
||||
createTicketMessage: 'Created ticket',
|
||||
statusModifyPrefix: 'Modified repair status to: ',
|
||||
statusModifyMessage: new Map<StatusStr, string>([
|
||||
['1', 'Repairing'],
|
||||
['2', '2(?)'],
|
||||
['3', '3(?)'],
|
||||
['4', 'Device to be taken home'],
|
||||
['5', 'Ticket finished'],
|
||||
]),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user