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

@@ -26,7 +26,7 @@ export const FilamentShow: React.FC<IResourceComponentsProps> = () => {
if (item.vendor) {
vendorPrefix = `${item.vendor.name} - `;
}
return `[Filament #${item.id}] ${vendorPrefix}${item.name}`;
return t("filament.titles.show_title", { id: item.id, name: vendorPrefix + item.name });
};
const formatVendor = (item: IVendor) => {