From ec3afdcfe65241168d717ca6d7d8f42e0f48319b Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 30 Jan 2024 13:49:54 +0100 Subject: [PATCH] refactor(useTranslate): use new key format for catalog --- src/common/useTranslate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/useTranslate.js b/src/common/useTranslate.js index 753daaa80..459025f46 100644 --- a/src/common/useTranslate.js +++ b/src/common/useTranslate.js @@ -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) {