add partial localization support for report page

This commit is contained in:
Dawn_Ocean
2024-03-07 14:38:37 +08:00
parent 3232994fb2
commit 1a30ff6def
3 changed files with 27 additions and 3 deletions
+4
View File
@@ -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' | ...;