From fe517735ad313f250c5bcdbe24b83ae884c74e54 Mon Sep 17 00:00:00 2001 From: Melina Gutierrez Date: Wed, 27 Nov 2024 15:06:06 -0400 Subject: [PATCH] =?UTF-8?q?cambiar=20a=20espa=C3=B1ol=20el=20boton=20de=20?= =?UTF-8?q?exportar=20como=20excel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/primefactorsolutions/views/EmployeesListView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/primefactorsolutions/views/EmployeesListView.java b/src/main/java/com/primefactorsolutions/views/EmployeesListView.java index 1541dcc..5f759f0 100644 --- a/src/main/java/com/primefactorsolutions/views/EmployeesListView.java +++ b/src/main/java/com/primefactorsolutions/views/EmployeesListView.java @@ -48,7 +48,7 @@ public class EmployeesListView extends BaseView { StreamResource excelResource = new StreamResource("employees.xlsx", this::generateExcel); Anchor downloadLink = new Anchor(excelResource, "Export Employees"); downloadLink.getElement().setAttribute("download", true); // Forzar descarga - return new Button("Export to Excel", e -> getCurrentPageLayout().add(downloadLink)); + return new Button("Exportar como Excel", e -> getCurrentPageLayout().add(downloadLink)); } private ByteArrayInputStream generateExcel() {