Merge pull request #575 from Stremio/refactor/catalog-title-translate-key

refactor(useTranslate): use new key format for catalog
This commit is contained in:
Tim 2024-02-01 13:10:04 +01:00 committed by GitHub
commit 176e5d9008
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}/${id}`;
const partialKey = `${addon.manifest.id.replaceAll('.', '_')}_${id}`;
const translatedName = stringWithPrefix(partialKey, 'CATALOG_', name);
if (type && withType) {