Added addon name to catalogTitle function

This commit is contained in:
Ivelin Megdanov 2025-02-26 12:25:47 +02:00
parent 7220635d79
commit 3d56023ffd
2 changed files with 3 additions and 3 deletions

View file

@ -21,10 +21,11 @@ const useTranslate = () => {
if (addon && id && name) {
const partialKey = `${addon.manifest.id.split('.').join('_')}_${id}`;
const translatedName = stringWithPrefix(partialKey, 'CATALOG_', name);
const addonName = addon.manifest.name;
if (type && withType) {
const translatedType = stringWithPrefix(type, 'TYPE_');
return `${translatedName} - ${translatedType}`;
return `${addonName}: ${translatedName} - ${translatedType}`;
}
return translatedName;

View file

@ -110,13 +110,12 @@ const Search = ({ queryParams }) => {
return null;
}
default: {
const loadingTitle = `${catalog.addon.manifest.name}: ${t.catalogTitle(catalog)}`;
return (
<MetaRow.Placeholder
key={index}
className={classnames(styles['search-row'], styles['search-row-poster'], 'animation-fade-in')}
catalog={catalog}
title={loadingTitle}
title={t.catalogTitle(catalog)}
/>
);
}