add partial localization support for report page
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
export interface ReportPageText {
|
||||
placeHolderText: string;
|
||||
submitText: string;
|
||||
resetText: string;
|
||||
}
|
||||
|
||||
export const reportPageZhCn: ReportPageText = {
|
||||
placeHolderText:
|
||||
'无论是有关于小程序的建议,还是关于E志者协会的建议,都可以提出来哦!',
|
||||
submitText: '提交',
|
||||
resetText: '清空',
|
||||
};
|
||||
|
||||
export const reportPageEnUs: ReportPageText = {
|
||||
placeHolderText:
|
||||
'无论是有关于小程序的建议,还是关于E志者协会的建议,都可以提出来哦!',
|
||||
submitText: 'Submit',
|
||||
resetText: 'Reset',
|
||||
};
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
settingsPageEnUs,
|
||||
settingsPageZhCn,
|
||||
} from './SettingsPage';
|
||||
import { ReportPageText, reportPageEnUs, reportPageZhCn } from './ReportPage';
|
||||
|
||||
interface TextRecord {
|
||||
pageFooter: PageFooterText;
|
||||
@@ -14,6 +15,7 @@ interface TextRecord {
|
||||
userPage: UserPageText;
|
||||
tabBar: TabBarText;
|
||||
settingsPage: SettingsPageText;
|
||||
reportPage: ReportPageText;
|
||||
}
|
||||
|
||||
const textZhCn: TextRecord = {
|
||||
@@ -22,6 +24,7 @@ const textZhCn: TextRecord = {
|
||||
userPage: userPageZhCn,
|
||||
tabBar: tabBarZhCn,
|
||||
settingsPage: settingsPageZhCn,
|
||||
reportPage: reportPageZhCn,
|
||||
};
|
||||
|
||||
const textEnUs: TextRecord = {
|
||||
@@ -30,6 +33,7 @@ const textEnUs: TextRecord = {
|
||||
userPage: userPageEnUs,
|
||||
tabBar: tabBarEnUs,
|
||||
settingsPage: settingsPageEnUs,
|
||||
reportPage: reportPageEnUs,
|
||||
};
|
||||
|
||||
// type Lang = 'zh_CN' | 'en_US' | ...;
|
||||
|
||||
Reference in New Issue
Block a user