add inform page request

This commit is contained in:
Dawn_Ocean
2024-03-08 22:45:40 +08:00
parent b174304d74
commit dd770b8ece
7 changed files with 73 additions and 45 deletions
+32
View File
@@ -0,0 +1,32 @@
export interface ButtonText {
buttonText: {
submit: string;
reset: string;
};
submitText: {
success: string;
error: string;
};
}
export const buttonZhCn: ButtonText = {
buttonText: {
submit: '提交',
reset: '清空',
},
submitText: {
success: '提交成功',
error: '提交失败:',
},
};
export const buttonEnUs: ButtonText = {
buttonText: {
submit: 'Submit',
reset: 'Reset',
},
submitText: {
success: 'Success',
error: 'Error: ',
},
};
-21
View File
@@ -1,7 +1,4 @@
export interface InformPageText {
submitText: {
success: string;
};
phoneText: {
title: string;
placeholder: string;
@@ -10,16 +7,9 @@ export interface InformPageText {
title: string;
placeholder: string;
};
buttonText: {
submit: string;
reset: string;
};
}
export const informPageZhCn: InformPageText = {
submitText: {
success: '提交成功',
},
phoneText: {
title: '手机号码',
placeholder: '便于查询工单',
@@ -28,16 +18,9 @@ export const informPageZhCn: InformPageText = {
title: '真实姓名',
placeholder: '必填,与工单绑定',
},
buttonText: {
submit: '提交',
reset: '清空',
},
};
export const informtPageEnUs: InformPageText = {
submitText: {
success: 'Success',
},
phoneText: {
title: 'Phone',
placeholder: '便于查询工单',
@@ -46,8 +29,4 @@ export const informtPageEnUs: InformPageText = {
title: 'Real Name',
placeholder: '必填,与工单绑定',
},
buttonText: {
submit: 'Submit',
reset: 'Reset',
},
};
-12
View File
@@ -1,25 +1,13 @@
export interface ReportPageText {
placeHolderText: string;
buttonText: {
submit: string;
reset: string;
};
}
export const reportPageZhCn: ReportPageText = {
placeHolderText:
'无论是有关于小程序的建议,还是关于E志者协会的建议,都可以提出来哦!',
buttonText: {
submit: '提交',
reset: '清空',
},
};
export const reportPageEnUs: ReportPageText = {
placeHolderText:
'无论是有关于小程序的建议,还是关于E志者协会的建议,都可以提出来哦!',
buttonText: {
submit: 'Submit',
reset: 'Reset',
},
};
+4
View File
@@ -5,6 +5,7 @@ import { TabBarText, tabBarEnUs, tabBarZhCn } from './TabBar';
import { ReportPageText, reportPageEnUs, reportPageZhCn } from './ReportPage';
import { InformPageText, informPageZhCn, informtPageEnUs } from './InformPage';
import { AboutPageText, aboutPageEnUs, aboutPageZhCn } from './AboutPage';
import { ButtonText, buttonEnUs, buttonZhCn } from './Button';
interface TextRecord {
pageFooter: PageFooterText;
@@ -14,6 +15,7 @@ interface TextRecord {
reportPage: ReportPageText;
informPage: InformPageText;
aboutPage: AboutPageText;
button: ButtonText;
}
const textZhCn: TextRecord = {
@@ -24,6 +26,7 @@ const textZhCn: TextRecord = {
reportPage: reportPageZhCn,
informPage: informPageZhCn,
aboutPage: aboutPageZhCn,
button: buttonZhCn,
};
const textEnUs: TextRecord = {
@@ -34,6 +37,7 @@ const textEnUs: TextRecord = {
reportPage: reportPageEnUs,
informPage: informtPageEnUs,
aboutPage: aboutPageEnUs,
button: buttonEnUs,
};
// type Lang = 'zh_CN' | 'en_US' | ...;