Merge pull request #712 from Stremio/backward-support

Fix Backward Support for Older Browsers
This commit is contained in:
Tim 2024-10-25 15:06:38 +02:00 committed by GitHub
commit 7078dd76d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ const useTranslate = () => {
const catalogTitle = useCallback(({ addon, id, name, type } = {}, withType = true) => {
if (addon && id && name) {
const partialKey = `${addon.manifest.id.replaceAll('.', '_')}_${id}`;
const partialKey = `${addon.manifest.id.split('.').join('_')}_${id}`;
const translatedName = stringWithPrefix(partialKey, 'CATALOG_', name);
if (type && withType) {