fix(i18n): harden owner localized forms

This commit is contained in:
poyrazavsever
2026-07-21 13:37:53 +03:00
parent 1227588320
commit 1653e4f61d
9 changed files with 25 additions and 34 deletions
@@ -21,8 +21,8 @@ export async function importTranslationsAction(content: string) {
service.importPackage(actor, data);
revalidatePath("/settings/languages");
return { success: true };
} catch (error: any) {
} catch (error) {
console.error("Import error:", error);
return { errorKey: "common.error.description", details: error.message };
return { errorKey: "common.error.description", details: error instanceof Error ? error.message : String(error) };
}
}