From eee159811299ee26dc648aa55cc0eed6fed3627e Mon Sep 17 00:00:00 2001 From: Patricio Suarez Date: Mon, 17 Jul 2023 15:26:52 -0400 Subject: [PATCH 1/5] Started Spanish localization --- client/public/locales/es/common.json | 172 +++++++++++++++++++++++++++ client/src/i18n.ts | 5 + 2 files changed, 177 insertions(+) create mode 100644 client/public/locales/es/common.json diff --git a/client/public/locales/es/common.json b/client/public/locales/es/common.json new file mode 100644 index 0000000..b110acc --- /dev/null +++ b/client/public/locales/es/common.json @@ -0,0 +1,172 @@ +{ + "actions": { + "list": "Listar", + "create": "Crear", + "edit": "Editar", + "show": "Mostrar", + "clone": "Duplicar" + }, + "buttons": { + "create": "Crear", + "save": "Guardar", + "logout": "Logout", + "delete": "Borrar", + "edit": "Editar", + "cancel": "Cancelar", + "confirm": "Esta seguro?", + "filter": "Filtrar", + "clear": "Clear", + "refresh": "Refresh", + "show": "Mostrar", + "undo": "Undo", + "import": "Importar", + "clone": "Duplicar", + "archive": "Archivar", + "unArchive": "Desarchivar", + "hideArchived": "Ocultar Archivados", + "showArchived": "Mostrar Archivados", + "notAccessTitle": "No tienes permiso de acceso", + "hideColumns": "Ocultar Columnas", + "clearFilters": "Clear Filters" + }, + "warnWhenUnsavedChanges": "Are you sure you want to leave? You have unsaved changes.", + "notifications": { + "success": "Successful", + "error": "Error (status code: {{statusCode}})", + "undoable": "You have {{seconds}} seconds to undo", + "createSuccess": "Successfully created {{resource}}", + "createError": "There was an error creating {{resource}} (status code: {{statusCode}})", + "deleteSuccess": "Successfully deleted {{resource}}", + "deleteError": "Error when deleting {{resource}} (status code: {{statusCode}})", + "editSuccess": "Successfully edited {{resource}}", + "editError": "Error when editing {{resource}} (status code: {{statusCode}})", + "importProgress": "Importing: {{processed}}/{{total}}" + }, + "loading": "Loading", + "version": "Version", + "unknown": "Unknown", + "yes": "Yes", + "no": "No", + "tags": { + "clone": "Clone" + }, + "dashboard": { + "title": "Dashboard" + }, + "spool": { + "spool": "Spools", + "fields": { + "id": "Id", + "filament_name": "Filament", + "filament": "Filament", + "material": "Material", + "used_weight": "Used Weight", + "remaining_weight": "Remaining Weight", + "used_length": "Used Length", + "remaining_length": "Remaining Length", + "location": "Location", + "lot_nr": "Lot Nr", + "first_used": "First Used", + "last_used": "Last Used", + "registered": "Registered", + "comment": "Comment", + "archived": "Archived" + }, + "fields_help": { + "used_weight": "How much filament has been used from the spool. A new spool should have 0g used.", + "location": "Where the spool is located if you have multiple locations where you store your spools.", + "lot_nr": "Manufacturer's lot number. Can be used to ensure a print has consistent color if multiple spools are used." + }, + "titles": { + "create": "Crear Carrete", + "clone": "Duplicar Carrete", + "edit": "Editar Carrete", + "list": "Carretes", + "show": "Mostrar Carrete", + "archive": "Archivar Carrete" + }, + "messages": { + "archive": "Esta seguro que quiere archivar este carrete?" + } + }, + "filament": { + "filament": "Filamentos", + "fields": { + "id": "Id", + "vendor_name": "Marca", + "vendor": "Marca", + "name": "Nombre", + "material": "Material", + "price": "Precio", + "density": "Densidad", + "diameter": "Diametro", + "weight": "Peso", + "spool_weight": "Peso del Carrete", + "article_number": "Article Number", + "registered": "Registrado", + "comment": "Comentarios", + "settings_extruder_temp": "Extruder Temp", + "settings_bed_temp": "Bed Temp", + "color_hex": "Color" + }, + "fields_help": { + "name": "Filament name, to distinguish this filament type among others from the same vendor. Should contain the color for example.", + "material": "E.g. PLA, ABS, PETG, etc.", + "price": "Price of a full spool in the system configured currency.", + "weight": "The filament weight of a full spool (net weight). This should not include the weight of the spool itself, only the filament. It is what is usually written on the packaging.", + "spool_weight": "The weight of an empty spool. Currently not used for anything, but could be used by thirdparty apps to e.g. calculate the filament weight from a weight measurement.", + "article_number": "E.g. EAN, UPC, etc." + }, + "titles": { + "create": "Crear Filamento", + "clone": "Duplicar Filamento", + "edit": "Editar Filamento", + "list": "Filamentos", + "show": "Mostrar Filamentos" + } + }, + "vendor": { + "vendor": "Marca", + "fields": { + "id": "Id", + "name": "Nombre", + "registered": "Registrado", + "comment": "Comentarios" + }, + "titles": { + "create": "Crear Marca", + "clone": "Duplicar Marca", + "edit": "Editar Marca", + "list": "Marcas", + "show": "Mostrar Marcas" + } + }, + "table": { + "actions": "Acciones" + }, + "documentTitle": { + "default": "Spoolman", + "suffix": " | Spoolman", + "filament": { + "list": "Filamentos | Spoolman", + "show": "#{{id}} Mostrar Filamentos | Spoolman", + "edit": "#{{id}} Editar Filamentos | Spoolman", + "create": "Crear Filamento | Spoolman", + "clone": "#{{id}} Duplicar Filamento | Spoolman" + }, + "spool": { + "list": "Carretes | Spoolman", + "show": "#{{id}} Mostrar Carrete | Spoolman", + "edit": "#{{id}} Editar Carrete | Spoolman", + "create": "Crear Carrete | Spoolman", + "clone": "#{{id}} Duplicar Carrete | Spoolman" + }, + "vendor": { + "list": "Marcas | Spoolman", + "show": "#{{id}} Mostrar Marca | Spoolman", + "edit": "#{{id}} Editar Marca | Spoolman", + "create": "Crear Marca | Spoolman", + "clone": "#{{id}} Duplicar Marca | Spoolman" + } + } +} diff --git a/client/src/i18n.ts b/client/src/i18n.ts index fd6c641..a286004 100644 --- a/client/src/i18n.ts +++ b/client/src/i18n.ts @@ -25,6 +25,11 @@ export const languages: { [key: string]: Language } = { countryCode: "de", fullCode: "de-DE", }, + ["es"]: { + name: "Español", + countryCode: "es", + fullCode: "es-ES", + }, } i18n From aea3bd365dc3fd312b87d50ace8dcc3060e5448e Mon Sep 17 00:00:00 2001 From: Patricio Suarez Date: Tue, 18 Jul 2023 07:19:38 -0400 Subject: [PATCH 2/5] updates --- client/public/locales/es/common.json | 78 ++++++++++++++-------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/client/public/locales/es/common.json b/client/public/locales/es/common.json index b110acc..2d5c342 100644 --- a/client/public/locales/es/common.json +++ b/client/public/locales/es/common.json @@ -9,16 +9,16 @@ "buttons": { "create": "Crear", "save": "Guardar", - "logout": "Logout", + "logout": "Cerrar Sesión", "delete": "Borrar", "edit": "Editar", "cancel": "Cancelar", - "confirm": "Esta seguro?", + "confirm": "Seguro?", "filter": "Filtrar", - "clear": "Clear", + "clear": "Borrar", "refresh": "Refresh", "show": "Mostrar", - "undo": "Undo", + "undo": "Deshacer", "import": "Importar", "clone": "Duplicar", "archive": "Archivar", @@ -27,50 +27,50 @@ "showArchived": "Mostrar Archivados", "notAccessTitle": "No tienes permiso de acceso", "hideColumns": "Ocultar Columnas", - "clearFilters": "Clear Filters" + "clearFilters": "Borrar filtros" }, - "warnWhenUnsavedChanges": "Are you sure you want to leave? You have unsaved changes.", + "warnWhenUnsavedChanges": "Seguro que quieres salir?. Hay cambios sin guardar.", "notifications": { "success": "Successful", "error": "Error (status code: {{statusCode}})", - "undoable": "You have {{seconds}} seconds to undo", - "createSuccess": "Successfully created {{resource}}", - "createError": "There was an error creating {{resource}} (status code: {{statusCode}})", - "deleteSuccess": "Successfully deleted {{resource}}", - "deleteError": "Error when deleting {{resource}} (status code: {{statusCode}})", - "editSuccess": "Successfully edited {{resource}}", - "editError": "Error when editing {{resource}} (status code: {{statusCode}})", - "importProgress": "Importing: {{processed}}/{{total}}" + "undoable": "Tienes {{seconds}} segundos para deshacer", + "createSuccess": "Has creado {{resource}} con exito", + "createError": "Hubo un error al crear {{resource}} (status code: {{statusCode}})", + "deleteSuccess": "Has borrado {{resource}} con exito", + "deleteError": "Error al borrar {{resource}} (status code: {{statusCode}})", + "editSuccess": "Has editado {{resource}} con exito", + "editError": "Error al editar {{resource}} (status code: {{statusCode}})", + "importProgress": "Importando: {{processed}}/{{total}}" }, - "loading": "Loading", - "version": "Version", - "unknown": "Unknown", - "yes": "Yes", + "loading": "Cargando", + "version": "Versión", + "unknown": "Desconocido", + "yes": "Si", "no": "No", "tags": { - "clone": "Clone" + "clone": "Duplicar" }, "dashboard": { - "title": "Dashboard" + "title": "Panel" }, "spool": { - "spool": "Spools", + "spool": "Carretes", "fields": { "id": "Id", - "filament_name": "Filament", - "filament": "Filament", + "filament_name": "Filamento", + "filament": "Filamento", "material": "Material", - "used_weight": "Used Weight", - "remaining_weight": "Remaining Weight", - "used_length": "Used Length", - "remaining_length": "Remaining Length", - "location": "Location", - "lot_nr": "Lot Nr", - "first_used": "First Used", - "last_used": "Last Used", - "registered": "Registered", - "comment": "Comment", - "archived": "Archived" + "used_weight": "Peso Usado", + "remaining_weight": "Peso Restante", + "used_length": "Largo Usado", + "remaining_length": "Largo Restante", + "location": "Locacion", + "lot_nr": "Lote No.", + "first_used": "Fecha de Primer Uso", + "last_used": "Ultimo Uso", + "registered": "Registrado", + "comment": "Comentarios", + "archived": "Archivado" }, "fields_help": { "used_weight": "How much filament has been used from the spool. A new spool should have 0g used.", @@ -102,17 +102,17 @@ "diameter": "Diametro", "weight": "Peso", "spool_weight": "Peso del Carrete", - "article_number": "Article Number", + "article_number": "Numero de Articulo", "registered": "Registrado", "comment": "Comentarios", "settings_extruder_temp": "Extruder Temp", - "settings_bed_temp": "Bed Temp", + "settings_bed_temp": "Temp. de Cama", "color_hex": "Color" }, "fields_help": { - "name": "Filament name, to distinguish this filament type among others from the same vendor. Should contain the color for example.", - "material": "E.g. PLA, ABS, PETG, etc.", - "price": "Price of a full spool in the system configured currency.", + "name": "Nombre del filamento, para distinguirlo de otros de la misma marca. Por ejemplo, deberia contener el color.", + "material": "ej. PLA, ABS, PETG, etc.", + "price": "Precio del carrete completo en la moneda configurada en el sistema.", "weight": "The filament weight of a full spool (net weight). This should not include the weight of the spool itself, only the filament. It is what is usually written on the packaging.", "spool_weight": "The weight of an empty spool. Currently not used for anything, but could be used by thirdparty apps to e.g. calculate the filament weight from a weight measurement.", "article_number": "E.g. EAN, UPC, etc." From f732bb7ae157b3bae630b492a3c2dcb9f1b38e4e Mon Sep 17 00:00:00 2001 From: Patricio Suarez Date: Tue, 18 Jul 2023 07:46:17 -0400 Subject: [PATCH 3/5] updates --- client/public/locales/es/common.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/client/public/locales/es/common.json b/client/public/locales/es/common.json index 2d5c342..2a9ad46 100644 --- a/client/public/locales/es/common.json +++ b/client/public/locales/es/common.json @@ -31,7 +31,7 @@ }, "warnWhenUnsavedChanges": "Seguro que quieres salir?. Hay cambios sin guardar.", "notifications": { - "success": "Successful", + "success": "Exito", "error": "Error (status code: {{statusCode}})", "undoable": "Tienes {{seconds}} segundos para deshacer", "createSuccess": "Has creado {{resource}} con exito", @@ -73,9 +73,9 @@ "archived": "Archivado" }, "fields_help": { - "used_weight": "How much filament has been used from the spool. A new spool should have 0g used.", - "location": "Where the spool is located if you have multiple locations where you store your spools.", - "lot_nr": "Manufacturer's lot number. Can be used to ensure a print has consistent color if multiple spools are used." + "used_weight": "Cuanto filamento ha sido usado en el carrete. Un carrete nuevo debería tener 0g usados.", + "location": "Donde esta el carrete si se guardan los carretes en lugares distintos.", + "lot_nr": "Numero de lote de manufactura. Puede ser usado si el modelo a imprimir necesita color homogeneo y varios carretes son necesarios." }, "titles": { "create": "Crear Carrete", @@ -105,17 +105,17 @@ "article_number": "Numero de Articulo", "registered": "Registrado", "comment": "Comentarios", - "settings_extruder_temp": "Extruder Temp", + "settings_extruder_temp": "Temp. de Extrusor", "settings_bed_temp": "Temp. de Cama", "color_hex": "Color" }, "fields_help": { - "name": "Nombre del filamento, para distinguirlo de otros de la misma marca. Por ejemplo, deberia contener el color.", + "name": "Nombre del filamento, para distinguirlo de otros de la misma marca. Por ejemplo, debería contener el nombre del color.", "material": "ej. PLA, ABS, PETG, etc.", - "price": "Precio del carrete completo en la moneda configurada en el sistema.", - "weight": "The filament weight of a full spool (net weight). This should not include the weight of the spool itself, only the filament. It is what is usually written on the packaging.", - "spool_weight": "The weight of an empty spool. Currently not used for anything, but could be used by thirdparty apps to e.g. calculate the filament weight from a weight measurement.", - "article_number": "E.g. EAN, UPC, etc." + "price": "Precio del carrete completo en la divisa configurada en el sistema.", + "weight": "El peso de un carrete entero (peso neto). Esta sifra no debe incluir el peso del carrete vacio, solo el filamento. Es, usualmente, el peso escrito en la etiqueta del carrete.", + "spool_weight": "El peso del carrete vacio. Actualmente este valor no es usado para nada pero podria ser usado en otras aplicaciones, como calcular el peso actual del filamento pesando el carrete con una pesa.", + "article_number": "ej. EAN, UPC, etc." }, "titles": { "create": "Crear Filamento", From 785f1857284af78b8fc5d038a7f172905f4ef686 Mon Sep 17 00:00:00 2001 From: Patricio Suarez Date: Sun, 23 Jul 2023 07:38:04 -0400 Subject: [PATCH 4/5] Grammar corrections --- client/public/locales/es/common.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/client/public/locales/es/common.json b/client/public/locales/es/common.json index 2a9ad46..9d9c980 100644 --- a/client/public/locales/es/common.json +++ b/client/public/locales/es/common.json @@ -34,11 +34,11 @@ "success": "Exito", "error": "Error (status code: {{statusCode}})", "undoable": "Tienes {{seconds}} segundos para deshacer", - "createSuccess": "Has creado {{resource}} con exito", + "createSuccess": "Has creado {{resource}} con éxito", "createError": "Hubo un error al crear {{resource}} (status code: {{statusCode}})", - "deleteSuccess": "Has borrado {{resource}} con exito", + "deleteSuccess": "Has borrado {{resource}} con éxito", "deleteError": "Error al borrar {{resource}} (status code: {{statusCode}})", - "editSuccess": "Has editado {{resource}} con exito", + "editSuccess": "Has editado {{resource}} con éxito", "editError": "Error al editar {{resource}} (status code: {{statusCode}})", "importProgress": "Importando: {{processed}}/{{total}}" }, @@ -64,7 +64,7 @@ "remaining_weight": "Peso Restante", "used_length": "Largo Usado", "remaining_length": "Largo Restante", - "location": "Locacion", + "location": "Locación", "lot_nr": "Lote No.", "first_used": "Fecha de Primer Uso", "last_used": "Ultimo Uso", @@ -75,7 +75,7 @@ "fields_help": { "used_weight": "Cuanto filamento ha sido usado en el carrete. Un carrete nuevo debería tener 0g usados.", "location": "Donde esta el carrete si se guardan los carretes en lugares distintos.", - "lot_nr": "Numero de lote de manufactura. Puede ser usado si el modelo a imprimir necesita color homogeneo y varios carretes son necesarios." + "lot_nr": "Numero de lote de manufactura. Puede ser usado si el modelo a imprimir necesita color homogéneo y varios carretes son necesarios." }, "titles": { "create": "Crear Carrete", @@ -99,7 +99,7 @@ "material": "Material", "price": "Precio", "density": "Densidad", - "diameter": "Diametro", + "diameter": "Diámetro", "weight": "Peso", "spool_weight": "Peso del Carrete", "article_number": "Numero de Articulo", @@ -113,8 +113,8 @@ "name": "Nombre del filamento, para distinguirlo de otros de la misma marca. Por ejemplo, debería contener el nombre del color.", "material": "ej. PLA, ABS, PETG, etc.", "price": "Precio del carrete completo en la divisa configurada en el sistema.", - "weight": "El peso de un carrete entero (peso neto). Esta sifra no debe incluir el peso del carrete vacio, solo el filamento. Es, usualmente, el peso escrito en la etiqueta del carrete.", - "spool_weight": "El peso del carrete vacio. Actualmente este valor no es usado para nada pero podria ser usado en otras aplicaciones, como calcular el peso actual del filamento pesando el carrete con una pesa.", + "weight": "El peso de un carrete entero (peso neto). Esta cifra no debe incluir el peso del carrete vacío, solo el filamento. Es, usualmente, el peso escrito en la etiqueta del carrete.", + "spool_weight": "El peso del carrete vacío. Actualmente este valor no es usado para nada pero podría ser usado en otras aplicaciones, como calcular el peso actual del filamento pesando el carrete con una pesa.", "article_number": "ej. EAN, UPC, etc." }, "titles": { From 2c29babdf7ca860ded19b4bc6d895a59af1b6175 Mon Sep 17 00:00:00 2001 From: Patricio Suarez Date: Tue, 25 Jul 2023 19:17:04 -0400 Subject: [PATCH 5/5] grammar corrections --- client/public/locales/es/common.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/public/locales/es/common.json b/client/public/locales/es/common.json index 9d9c980..c210729 100644 --- a/client/public/locales/es/common.json +++ b/client/public/locales/es/common.json @@ -31,7 +31,7 @@ }, "warnWhenUnsavedChanges": "Seguro que quieres salir?. Hay cambios sin guardar.", "notifications": { - "success": "Exito", + "success": "Éxito", "error": "Error (status code: {{statusCode}})", "undoable": "Tienes {{seconds}} segundos para deshacer", "createSuccess": "Has creado {{resource}} con éxito",