mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
Merge pull request #575 from Stremio/refactor/catalog-title-translate-key
refactor(useTranslate): use new key format for catalog
This commit is contained in:
commit
176e5d9008
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ const useTranslate = () => {
|
|||
|
||||
const catalogTitle = useCallback(({ addon, id, name, type } = {}, withType = true) => {
|
||||
if (addon && id && name) {
|
||||
const partialKey = `${addon.manifest.id}/${id}`;
|
||||
const partialKey = `${addon.manifest.id.replaceAll('.', '_')}_${id}`;
|
||||
const translatedName = stringWithPrefix(partialKey, 'CATALOG_', name);
|
||||
|
||||
if (type && withType) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue