feat(i18n): localize movement UI
This commit is contained in:
@@ -559,6 +559,76 @@ describe("i18n dictionaries", () => {
|
||||
})
|
||||
})
|
||||
|
||||
it("provides localized movement UI copy for English and Spanish", () => {
|
||||
expect(getDictionary("en").inventory.movements).toEqual({
|
||||
list: {
|
||||
title: "Movements",
|
||||
empty: "No movements found",
|
||||
columns: {
|
||||
type: "Type",
|
||||
item: "Item",
|
||||
serialNumber: "Serial Number",
|
||||
quantity: "Quantity",
|
||||
recipient: "Recipient",
|
||||
date: "Date",
|
||||
},
|
||||
},
|
||||
snippet: {
|
||||
title: "Movements",
|
||||
labels: {
|
||||
type: "Type",
|
||||
quantity: "Quantity",
|
||||
},
|
||||
},
|
||||
types: {
|
||||
IN: "In",
|
||||
OUT: "Out",
|
||||
ASSIGNMENT: "Assignment",
|
||||
RETURN: "Return",
|
||||
ADJUSTMENT: "Adjustment",
|
||||
DELETED: "Deleted",
|
||||
},
|
||||
fallback: {
|
||||
missingValue: "-",
|
||||
unknownType: "Unknown movement type",
|
||||
},
|
||||
})
|
||||
|
||||
expect(getDictionary("es").inventory.movements).toEqual({
|
||||
list: {
|
||||
title: "Movimientos",
|
||||
empty: "No se encontraron movimientos.",
|
||||
columns: {
|
||||
type: "Tipo",
|
||||
item: "Artículo",
|
||||
serialNumber: "Número de serie",
|
||||
quantity: "Cantidad",
|
||||
recipient: "Destinatario",
|
||||
date: "Fecha",
|
||||
},
|
||||
},
|
||||
snippet: {
|
||||
title: "Movimientos",
|
||||
labels: {
|
||||
type: "Tipo",
|
||||
quantity: "Cantidad",
|
||||
},
|
||||
},
|
||||
types: {
|
||||
IN: "Entrada",
|
||||
OUT: "Salida",
|
||||
ASSIGNMENT: "Asignación",
|
||||
RETURN: "Devolución",
|
||||
ADJUSTMENT: "Ajuste",
|
||||
DELETED: "Eliminación",
|
||||
},
|
||||
fallback: {
|
||||
missingValue: "-",
|
||||
unknownType: "Tipo de movimiento desconocido",
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
it("keeps dashboard home dictionary keys aligned across locales", () => {
|
||||
expect(getDictionary("en").dashboardHome).toEqual({
|
||||
heading: "Dashboard",
|
||||
|
||||
Reference in New Issue
Block a user