Internationalize remaining TODO-marked UI text in Expo app

This commit is contained in:
Adolfo Reyna
2026-02-20 22:30:20 -05:00
parent a8d21d31f8
commit 06e620dbf6
16 changed files with 230 additions and 69 deletions

View File

@@ -71,33 +71,33 @@ let MenuView = ({ navigation }) => {
>
<ProfileCardHorizontal profileObj={viewer} skipFollow={true} skiptOnPress={true} key={viewer._id} />
<List.Accordion
title="Change Active Profile"
title={i18n.t("message.changeActiveProfile")}
left={props => <List.Icon {...props} icon="published-with-changes" />}
>
{profileLists}
</List.Accordion>
<List.Section title="User Actions">
<List.Section title={i18n.t("message.userActions")}>
<List.Item key='ProfileEditor' title={i18n.t('message.profile')} onPress={() => { navigation.navigate("ProfileSettings") }} left={props => <List.Icon {...props} icon="person" />} />
<List.Item key='Settings' title={i18n.t('message.settings')} left={props => <List.Icon {...props} icon="settings" />} />
<List.Item key="Logout" title={i18n.t('message.logout')} onPress={() => { navigation.navigate("Logout") }} left={props => <List.Icon {...props} icon="logout" />} />
</List.Section>
<List.Section title="Fellowship App">
<List.Section title={i18n.t("message.fellowshipApp")}>
<List.Item key='Invite' title={i18n.t('message.invite')} onPress={() => { navigation.navigate("Invite") }} left={props => <List.Icon {...props} icon="person-add" />} />
<List.Item key='About' title={i18n.t('message.about')} left={props => <List.Icon {...props} icon="more" />} />
</List.Section>
<View style={{ padding: 10 }}>
<Text>App Language:</Text>
<Text>{i18n.t("message.appLanguage")}:</Text>
<RadioButton.Group onValueChange={newValue => changeLang(newValue)} value={value}>
<RadioButton.Item value="es" label="Español" />
<RadioButton.Item value="en" label="English" />
<RadioButton.Item value="da" label="Danish" />
<RadioButton.Item value="fr" label="French" />
<RadioButton.Item value="es" label={i18n.t("message.languageSpanish")} />
<RadioButton.Item value="en" label={i18n.t("message.languageEnglish")} />
<RadioButton.Item value="da" label={i18n.t("message.languageDanish")} />
<RadioButton.Item value="fr" label={i18n.t("message.languageFrench")} />
</RadioButton.Group>
</View>
<View style={{ padding: 10, alignContent: "center", flex: 1 }}>
<Text>Version: {Updates.runtimeVersion}</Text>
<Text>Channel: {Updates.Channel}</Text>
<Text>{i18n.t("message.version")}: {Updates.runtimeVersion}</Text>
<Text>{i18n.t("message.channel")}: {Updates.Channel}</Text>
</View>
</ImageBackground>
</ScrollView>