fix(i18n): harden owner localized forms
This commit is contained in:
@@ -120,7 +120,7 @@ export function TranslationEditor({
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-3">
|
||||
<Select value={filter} onValueChange={(v: any) => setFilter(v)}>
|
||||
<Select value={filter} onValueChange={(value) => setFilter(value as typeof filter)}>
|
||||
<SelectTrigger className="w-[140px]">
|
||||
<SelectValue />
|
||||
</SelectTrigger>
|
||||
|
||||
@@ -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) };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user