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

30 lines
758 B
TypeScript

import { Moment } from 'moment';
export interface CommonText {
createdAtText(time: Moment): string;
offDutyReason: string;
place: string;
dutyRecoverTime: string;
zeroMemberOnDuty: string;
}
export const commonTextZhCn: CommonText = {
createdAtText(time: Moment): string {
return '创建于 ' + time.format('YYYY-MM-DD HH:mm');
},
offDutyReason: '正常值班下班',
place: '204',
dutyRecoverTime: '明天 13:30',
zeroMemberOnDuty: '待更新',
};
export const commonTextEnUs: CommonText = {
createdAtText(time: Moment): string {
return 'Created at ' + time.format('YYYY-MM-DD HH:mm');
},
offDutyReason: 'Normal Shift',
place: 'E3-204',
dutyRecoverTime: 'Tomorrow 13:30',
zeroMemberOnDuty: 'Wait for update',
};