feat(i18n): localize inventory categories UI

This commit is contained in:
2026-06-12 23:01:33 +02:00
parent 589b042e7c
commit e9a07eb28e
14 changed files with 315 additions and 17 deletions
@@ -0,0 +1,18 @@
import { describe, expect, it } from "vitest"
import { getPageHeaderAddLabel } from "@/components/common/pageheader.utils"
describe("PageHeader", () => {
it("uses the explicit add label when provided", () => {
expect(
getPageHeaderAddLabel({
addLabel: "Agregar categoría",
title: "Categorías",
}),
).toBe("Agregar categoría")
})
it("keeps the legacy fallback when no explicit add label is provided", () => {
expect(getPageHeaderAddLabel({ title: "Items" })).toBe("Add Items")
})
})