add partial localization support for report page
This commit is contained in:
@@ -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