diff --git a/apps/mobile/src/components/layouts/header/HeaderElements.tsx b/apps/mobile/src/components/layouts/header/HeaderElements.tsx
index 3355cf3a6..630a9da45 100644
--- a/apps/mobile/src/components/layouts/header/HeaderElements.tsx
+++ b/apps/mobile/src/components/layouts/header/HeaderElements.tsx
@@ -1,5 +1,6 @@
import { cn, withOpacity } from "@follow/utils"
import { useCallback } from "react"
+import { useTranslation } from "react-i18next"
import { Text, TouchableOpacity, View } from "react-native"
import { useSafeAreaInsets } from "react-native-safe-area-context"
@@ -73,10 +74,12 @@ export const HeaderSubmitTextButton = ({
isValid,
onPress,
isLoading,
- label = "Submit",
+ label,
}: ModalHeaderSubmitButtonProps & {
label?: string
}) => {
+ const { t } = useTranslation("common")
+
const labelColor = useColor("label")
return (
@@ -92,7 +95,7 @@ export const HeaderSubmitTextButton = ({
isLoading && "opacity-0",
)}
>
- {label}
+ {label ?? t("words.submit")}
)
diff --git a/apps/mobile/src/modules/settings/routes/EditProfile.tsx b/apps/mobile/src/modules/settings/routes/EditProfile.tsx
index 3df0ff822..c3584e241 100644
--- a/apps/mobile/src/modules/settings/routes/EditProfile.tsx
+++ b/apps/mobile/src/modules/settings/routes/EditProfile.tsx
@@ -1,6 +1,7 @@
import { useMutation } from "@tanstack/react-query"
import type { FC } from "react"
import { useState } from "react"
+import { useTranslation } from "react-i18next"
import { Text, TouchableOpacity, TouchableWithoutFeedback, View } from "react-native"
import { KeyboardController } from "react-native-keyboard-controller"
@@ -33,6 +34,7 @@ import { setAvatar } from "../utils"
export const EditProfileScreen = () => {
const whoami = useWhoami()
+ const { t } = useTranslation("settings")
if (!whoami) {
return (
@@ -44,7 +46,7 @@ export const EditProfileScreen = () => {
return (
-
+
@@ -54,6 +56,7 @@ export const EditProfileScreen = () => {
const AvatarSection: FC<{
whoami: MeModel
}> = ({ whoami }) => {
+ const { t } = useTranslation("settings")
return (
- Set Avatar
+ {t("profile.set_avatar")}
)
@@ -73,6 +76,8 @@ const AvatarSection: FC<{
const ProfileForm: FC<{
whoami: MeModel
}> = ({ whoami }) => {
+ const { t } = useTranslation("settings")
+
const [dirtyFields, setDirtyFields] = useState>({})
const { mutateAsync: updateProfile, isPending } = useMutation({
@@ -93,14 +98,14 @@ const ProfileForm: FC<{
{
updateProfile()
}}
/>
}
- title="Edit Profile"
+ title={t("profile.edit_profile")}
/>
@@ -128,11 +133,15 @@ const ProfileForm: FC<{
-
+
{/* User name */}
-
+
-
+
{/* Email */}
{
navigation.presentControllerView(EditEmailScreen)
}}
diff --git a/apps/mobile/src/screens/(modal)/edit-email.tsx b/apps/mobile/src/screens/(modal)/edit-email.tsx
index 4c34d42b5..4324b98c1 100644
--- a/apps/mobile/src/screens/(modal)/edit-email.tsx
+++ b/apps/mobile/src/screens/(modal)/edit-email.tsx
@@ -1,5 +1,6 @@
import { useMutation } from "@tanstack/react-query"
import { useMemo, useState } from "react"
+import { useTranslation } from "react-i18next"
import { View } from "react-native"
import { HeaderSubmitTextButton } from "@/src/components/layouts/header/HeaderElements"
@@ -21,6 +22,8 @@ import { useWhoami } from "@/src/store/user/hooks"
import { userSyncService } from "@/src/store/user/store"
export const EditEmailScreen: NavigationControllerView = () => {
+ const { t } = useTranslation("settings")
+
const whoami = useWhoami()
const [email, setEmail] = useState(whoami?.email ?? "")
@@ -48,7 +51,7 @@ export const EditEmailScreen: NavigationControllerView = () => {
return (
{
-
+
{
{/* Buttons */}
diff --git a/locales/settings/en.json b/locales/settings/en.json
index 22915e324..cfaf6c0d2 100644
--- a/locales/settings/en.json
+++ b/locales/settings/en.json
@@ -324,7 +324,10 @@
"profile.current_password.label": "Current Password",
"profile.danger_zone": "Danger Zone",
"profile.delete_account.label": "Delete Account",
+ "profile.edit_email": "Edit Email",
+ "profile.edit_profile": "Edit Profile",
"profile.email.change": "Change Email",
+ "profile.email.change_note": "If you want to change your email, you should verify your new email.",
"profile.email.changed": "Email changed.",
"profile.email.changed_verification_sent": "Email to verify the new email has been sent.",
"profile.email.label": "Email",
@@ -333,6 +336,7 @@
"profile.email.verification_sent": "Email verification sent",
"profile.email.verified": "Verified",
"profile.email.verify_email": "Please verify your email ({{email_address}}) to continue",
+ "profile.email.verify_status": "Your email is {{status}}",
"profile.handle.description": "Your unique identifier.",
"profile.handle.label": "Handle",
"profile.link_social.authentication": "Authentication",
@@ -345,6 +349,7 @@
"profile.password.label": "Password",
"profile.reset_password_mail_sent": "Reset password mail sent.",
"profile.security": "Security",
+ "profile.set_avatar": "Set Avatar",
"profile.sidebar_title": "Profile",
"profile.submit": "Submit",
"profile.title": "Profile Settings",