diff --git a/src/components/CapacitorControls.tsx b/src/components/CapacitorControls.tsx index 062a0d9..2f65675 100644 --- a/src/components/CapacitorControls.tsx +++ b/src/components/CapacitorControls.tsx @@ -209,7 +209,7 @@ export function CapacitorControls({ appId }: CapacitorControlsProps) { {errorDetails && (
{errorDetails.message}
diff --git a/src/ipc/handlers/capacitor_handlers.ts b/src/ipc/handlers/capacitor_handlers.ts
index 18107ce..928eb9b 100644
--- a/src/ipc/handlers/capacitor_handlers.ts
+++ b/src/ipc/handlers/capacitor_handlers.ts
@@ -66,6 +66,10 @@ export function registerCapacitorHandlers() {
cwd: appPath,
successMessage: "Capacitor sync completed successfully",
errorPrefix: "Failed to sync Capacitor",
+ env: {
+ ...process.env,
+ LANG: "en_US.UTF-8",
+ },
});
},
);
diff --git a/src/ipc/utils/simpleSpawn.ts b/src/ipc/utils/simpleSpawn.ts
index e31c25a..bb97a5e 100644
--- a/src/ipc/utils/simpleSpawn.ts
+++ b/src/ipc/utils/simpleSpawn.ts
@@ -8,11 +8,13 @@ export async function simpleSpawn({
cwd,
successMessage,
errorPrefix,
+ env,
}: {
command: string;
cwd: string;
successMessage: string;
errorPrefix: string;
+ env?: Record