Skip to content

Commit

Permalink
Merge pull request #575 from Stremio/refactor/catalog-title-translate…
Browse files Browse the repository at this point in the history
…-key

refactor(useTranslate): use new key format for catalog
  • Loading branch information
tymmesyde authored Feb 1, 2024
2 parents 8674262 + 75b3825 commit 176e5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/useTranslate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 176e5d9

Please sign in to comment.