mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 07:32:02 +00:00
refactor(useTranslate): use new key format for catalog
This commit is contained in:
parent
3fb210f38b
commit
ec3afdcfe6
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ const useTranslate = () => {
|
||||||
|
|
||||||
const catalogTitle = useCallback(({ addon, id, name, type } = {}, withType = true) => {
|
const catalogTitle = useCallback(({ addon, id, name, type } = {}, withType = true) => {
|
||||||
if (addon && id && name) {
|
if (addon && id && name) {
|
||||||
const partialKey = `${addon.manifest.id}/${id}`;
|
const partialKey = `${addon.manifest.id.replaceAll('.', '_')}_${id}`;
|
||||||
const translatedName = stringWithPrefix(partialKey, 'CATALOG_', name);
|
const translatedName = stringWithPrefix(partialKey, 'CATALOG_', name);
|
||||||
|
|
||||||
if (type && withType) {
|
if (type && withType) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue