feat(i18n): localize inventory categories UI
This commit is contained in:
@@ -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")
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user