diff --git a/app/(app)/packages.tsx b/app/(app)/packages.tsx index df63e0b..f96f2c1 100644 --- a/app/(app)/packages.tsx +++ b/app/(app)/packages.tsx @@ -6,6 +6,7 @@ import { TouchableOpacity, } from "react-native"; import { SafeAreaView } from "react-native-safe-area-context"; +import { useTranslation } from "react-i18next"; import { Package, ToggleLeft, ToggleRight, Trash2 } from "lucide-react-native"; import { usePackageManagement } from "~/hooks/usePackageManagement"; import { Card, CardHeader, CardTitle, CardContent } from "~/components/ui/Card"; @@ -20,6 +21,7 @@ import { useConfirm } from "~/components/ui/ConfirmDialog"; * Route: app/(app)/packages.tsx */ export default function PackagesScreen() { + const { t } = useTranslation(); const { packages, isLoading, error, refetch, enable, disable, uninstall } = usePackageManagement(); const confirm = useConfirm(); @@ -53,7 +55,7 @@ export default function PackagesScreen() { return ( - + {isLoading && !packages.length ? ( diff --git a/app/account.tsx b/app/account.tsx index be51239..a6495ba 100644 --- a/app/account.tsx +++ b/app/account.tsx @@ -1,6 +1,7 @@ import { useState } from "react"; import { View, Text, ScrollView } from "react-native"; import { SafeAreaView } from "react-native-safe-area-context"; +import { useTranslation } from "react-i18next"; import { authClient } from "~/lib/auth-client"; import { useAccount } from "~/hooks/useAccount"; import { useTwoFactor } from "~/hooks/useTwoFactor"; @@ -40,6 +41,7 @@ function Section({ title, children }: { title: string; children: React.ReactNode * resend the verification email. Backed by `useAccount` → `client.auth.*`. */ export default function AccountScreen() { + const { t } = useTranslation(); const { data: session } = authClient.useSession(); const user = session?.user; const { updateProfile, changePassword, changeEmail, resendVerification, isSaving } = @@ -157,7 +159,7 @@ export default function AccountScreen() { return ( - +
diff --git a/app/flows/[name]/index.tsx b/app/flows/[name]/index.tsx index 1a5e920..8cf0028 100644 --- a/app/flows/[name]/index.tsx +++ b/app/flows/[name]/index.tsx @@ -68,7 +68,7 @@ export default function FlowDetailScreen() { if (isLoading) { return ( - + ); @@ -77,7 +77,7 @@ export default function FlowDetailScreen() { if (error || !flow) { return ( - + - + diff --git a/locales/ar.json b/locales/ar.json index c186dfa..fab6bf7 100644 --- a/locales/ar.json +++ b/locales/ar.json @@ -23,7 +23,8 @@ "refresh": "تحديث", "more": "المزيد", "settings": "الإعدادات", - "language": "اللغة" + "language": "اللغة", + "packages": "الحزم" }, "auth": { "signIn": "تسجيل الدخول", diff --git a/locales/en.json b/locales/en.json index 496c2e5..0c3ab2e 100644 --- a/locales/en.json +++ b/locales/en.json @@ -23,7 +23,8 @@ "refresh": "Refresh", "more": "More", "settings": "Settings", - "language": "Language" + "language": "Language", + "packages": "Packages" }, "auth": { "signIn": "Sign In", diff --git a/locales/zh.json b/locales/zh.json index 069ed3c..6784f44 100644 --- a/locales/zh.json +++ b/locales/zh.json @@ -23,7 +23,8 @@ "refresh": "刷新", "more": "更多", "settings": "设置", - "language": "语言" + "language": "语言", + "packages": "应用包" }, "auth": { "signIn": "登录",