Complete client UI i18n migration
Adds client-side i18n support, language settings, translated UI copy, and locale parity coverage.
This commit is contained in:
@@ -125,6 +125,19 @@ vi.mock("expo-router", () => ({
|
||||
router: { navigate },
|
||||
}));
|
||||
|
||||
vi.mock("react-i18next", () => ({
|
||||
useTranslation: () => ({
|
||||
t: (key: string, values?: Record<string, string>) => {
|
||||
if (key === "sidebar.project.empty.title") return "No projects yet";
|
||||
if (key === "settings.projectList.hostLoadFailed") {
|
||||
return `Couldn't load projects from host ${values?.hostName}: ${values?.message}`;
|
||||
}
|
||||
if (key === "settings.projectList.editProject") return `Edit ${values?.projectName}`;
|
||||
return key;
|
||||
},
|
||||
}),
|
||||
}));
|
||||
|
||||
vi.mock("@/components/ui/loading-spinner", () => ({
|
||||
LoadingSpinner: ({ size }: { size?: string | number }) =>
|
||||
React.createElement("span", {
|
||||
|
||||
Reference in New Issue
Block a user