feat(i18n): localize inventory assignments UI
This commit is contained in:
@@ -408,6 +408,90 @@ describe("i18n dictionaries", () => {
|
||||
})
|
||||
})
|
||||
|
||||
it("provides localized assignment copy for English and Spanish", () => {
|
||||
expect(getDictionary("en").inventory.assignments).toEqual({
|
||||
list: {
|
||||
title: "Assignments",
|
||||
addLabel: "Add Assignment",
|
||||
empty: "No assignments found.",
|
||||
columns: {
|
||||
recipient: "Recipient",
|
||||
item: "Item",
|
||||
serialNumber: "Serial Number",
|
||||
quantity: "Quantity",
|
||||
actions: "Actions",
|
||||
},
|
||||
actions: {
|
||||
edit: "Edit assignment",
|
||||
return: "Return assignment",
|
||||
},
|
||||
},
|
||||
new: {
|
||||
title: "New Assignment",
|
||||
},
|
||||
edit: {
|
||||
title: "Edit Assignment",
|
||||
notFound: "Assignment not found",
|
||||
},
|
||||
form: {
|
||||
recipientLabel: "Recipient",
|
||||
recipientPlaceholder: "Select a recipient",
|
||||
itemLabel: "Item",
|
||||
itemPlaceholder: "Select an item",
|
||||
assetLabel: "Asset",
|
||||
assetPlaceholder: "Select an asset",
|
||||
quantityLabel: "Quantity",
|
||||
quantityPlaceholder: "1",
|
||||
createSubmit: "Create Assignment",
|
||||
updateSubmit: "Update Assignment",
|
||||
},
|
||||
fallback: {
|
||||
missingValue: "N/A",
|
||||
},
|
||||
})
|
||||
|
||||
expect(getDictionary("es").inventory.assignments).toEqual({
|
||||
list: {
|
||||
title: "Asignaciones",
|
||||
addLabel: "Agregar asignación",
|
||||
empty: "No se encontraron asignaciones.",
|
||||
columns: {
|
||||
recipient: "Destinatario",
|
||||
item: "Artículo",
|
||||
serialNumber: "Número de serie",
|
||||
quantity: "Cantidad",
|
||||
actions: "Acciones",
|
||||
},
|
||||
actions: {
|
||||
edit: "Editar asignación",
|
||||
return: "Devolver asignación",
|
||||
},
|
||||
},
|
||||
new: {
|
||||
title: "Nueva asignación",
|
||||
},
|
||||
edit: {
|
||||
title: "Editar asignación",
|
||||
notFound: "Asignación no encontrada",
|
||||
},
|
||||
form: {
|
||||
recipientLabel: "Destinatario",
|
||||
recipientPlaceholder: "Selecciona un destinatario",
|
||||
itemLabel: "Artículo",
|
||||
itemPlaceholder: "Selecciona un artículo",
|
||||
assetLabel: "Activo",
|
||||
assetPlaceholder: "Selecciona un activo",
|
||||
quantityLabel: "Cantidad",
|
||||
quantityPlaceholder: "1",
|
||||
createSubmit: "Crear asignación",
|
||||
updateSubmit: "Actualizar asignación",
|
||||
},
|
||||
fallback: {
|
||||
missingValue: "No disponible",
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
it("provides localized inventory asset UI copy for English and Spanish", () => {
|
||||
expect(getDictionary("en").inventory.assets).toEqual({
|
||||
list: {
|
||||
|
||||
Reference in New Issue
Block a user