mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-12 07:00:28 +00:00
Added addon name to catalogTitle function
This commit is contained in:
parent
7220635d79
commit
3d56023ffd
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue