Localized show page titles

This commit is contained in:
Donkie
2023-10-08 17:44:33 +02:00
parent 3c8ea136b3
commit 5fdd218ead
4 changed files with 8 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ export const VendorShow: React.FC<IResourceComponentsProps> = () => {
const record = data?.data;
const formatTitle = (item: IVendor) => {
return `[Vendor #${item.id}] ${item.name}`;
return t("vendor.titles.show_title", { id: item.id, name: item.name });
};
return (