Internationalize remaining TODO-marked UI text in Expo app
This commit is contained in:
@@ -41,12 +41,12 @@ let ProfileSettings = () => {
|
||||
};
|
||||
|
||||
const languageOptions = [
|
||||
{ value: "es", label: "Español" },
|
||||
{ value: "en", label: "English" },
|
||||
{ value: "da", label: "Danish" },
|
||||
{ value: "fr", label: "French" },
|
||||
{ value: "es", label: i18n.t("message.languageSpanish") },
|
||||
{ value: "en", label: i18n.t("message.languageEnglish") },
|
||||
{ value: "da", label: i18n.t("message.languageDanish") },
|
||||
{ value: "fr", label: i18n.t("message.languageFrench") },
|
||||
];
|
||||
const currentLanguageLabel = languageOptions.find((opt) => opt.value === language)?.label || "English";
|
||||
const currentLanguageLabel = languageOptions.find((opt) => opt.value === language)?.label || i18n.t("message.languageEnglish");
|
||||
|
||||
const pickImage = async () => {
|
||||
if (uploading) return;
|
||||
@@ -176,8 +176,10 @@ let ProfileSettings = () => {
|
||||
<View style={{ paddingTop: 10 }}>
|
||||
<ProfileCardHorizontal profileObj={previewProfile} skipFollow={true} skiptOnPress={true} key={updateKey} />
|
||||
</View>
|
||||
<Text style={{ marginBottom: 10, marginTop: 10, fontSize: 20 }}>Profile Setting</Text>
|
||||
<Button icon="photo" mode="outlined" onPress={pickImage}>{!uploading ? i18n.t("message.updatePhoto") : "uploading"}</Button>
|
||||
<Text style={{ marginBottom: 10, marginTop: 10, fontSize: 20 }}>{i18n.t("message.profileSetting")}</Text>
|
||||
<Button icon="photo" mode="outlined" onPress={pickImage}>
|
||||
{!uploading ? i18n.t("message.updatePhoto") : i18n.t("message.uploading")}
|
||||
</Button>
|
||||
<Divider />
|
||||
<View style={{ flexDirection: "row", justifyContent: "space-between" }}>
|
||||
<TextInput
|
||||
@@ -201,7 +203,7 @@ let ProfileSettings = () => {
|
||||
value={description}
|
||||
onChangeText={text => setDescription(text)}
|
||||
/>
|
||||
<Text style={{ marginBottom: 4 }}>Language:</Text>
|
||||
<Text style={{ marginBottom: 4 }}>{i18n.t("message.language")}:</Text>
|
||||
<View style={{ marginBottom: 10 }}>
|
||||
<Menu
|
||||
visible={languageMenuVisible}
|
||||
|
||||
Reference in New Issue
Block a user