Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/(app)/packages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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();
Expand Down Expand Up @@ -53,7 +55,7 @@ export default function PackagesScreen() {

return (
<SafeAreaView className="flex-1 bg-background" edges={["left", "right"]}>
<ScreenHeader title="Packages" />
<ScreenHeader title={t("common.packages")} />
<ScrollView className="flex-1 bg-background" contentContainerClassName="pb-4">
{isLoading && !packages.length ? (
<View className="p-4">
Expand Down
4 changes: 3 additions & 1 deletion app/account.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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 } =
Expand Down Expand Up @@ -157,7 +159,7 @@ export default function AccountScreen() {

return (
<SafeAreaView className="flex-1 bg-background" edges={["left", "right"]}>
<ScreenHeader title="Account" />
<ScreenHeader title={t("more.sectionAccount")} />

<ScrollView className="flex-1" showsVerticalScrollIndicator={false}>
<Section title="Profile">
Expand Down
4 changes: 2 additions & 2 deletions app/flows/[name]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function FlowDetailScreen() {
if (isLoading) {
return (
<SafeAreaView className="flex-1 bg-background" edges={["left", "right"]}>
<ScreenHeader title="Flow" backFallback="/flows" />
<ScreenHeader title={t("more.flows")} backFallback="/flows" />
<ListSkeleton count={5} />
</SafeAreaView>
);
Expand All @@ -77,7 +77,7 @@ export default function FlowDetailScreen() {
if (error || !flow) {
return (
<SafeAreaView className="flex-1 bg-background" edges={["left", "right"]}>
<ScreenHeader title="Flow" backFallback="/flows" />
<ScreenHeader title={t("more.flows")} backFallback="/flows" />
<EmptyState
icon={Workflow}
variant={error ? "error" : "default"}
Expand Down
4 changes: 3 additions & 1 deletion app/language.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ScrollView } from "react-native";
import { SafeAreaView } from "react-native-safe-area-context";
import { useTranslation } from "react-i18next";
import { ScreenHeader } from "~/components/common/ScreenHeader";
import { LanguageSelector } from "~/components/common/LanguageSelector";

Expand All @@ -8,9 +9,10 @@ import { LanguageSelector } from "~/components/common/LanguageSelector";
* (`setLanguage` → i18next), so the change applies live across every screen.
*/
export default function LanguageScreen() {
const { t } = useTranslation();
return (
<SafeAreaView className="flex-1 bg-background" edges={["left", "right"]}>
<ScreenHeader title="Language" />
<ScreenHeader title={t("common.language")} />
<ScrollView className="flex-1" contentContainerClassName="px-5 pt-4">
<LanguageSelector />
</ScrollView>
Expand Down
3 changes: 2 additions & 1 deletion locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"refresh": "تحديث",
"more": "المزيد",
"settings": "الإعدادات",
"language": "اللغة"
"language": "اللغة",
"packages": "الحزم"
},
"auth": {
"signIn": "تسجيل الدخول",
Expand Down
3 changes: 2 additions & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"refresh": "Refresh",
"more": "More",
"settings": "Settings",
"language": "Language"
"language": "Language",
"packages": "Packages"
},
"auth": {
"signIn": "Sign In",
Expand Down
3 changes: 2 additions & 1 deletion locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"refresh": "刷新",
"more": "更多",
"settings": "设置",
"language": "语言"
"language": "语言",
"packages": "应用包"
},
"auth": {
"signIn": "登录",
Expand Down
Loading