From bb02ab8d543151324e2799f0659a14a8c5512a83 Mon Sep 17 00:00:00 2001 From: Alexandru Branza Date: Fri, 25 Oct 2024 15:58:58 +0300 Subject: [PATCH] Fix Backward Support for Older Browsers --- 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 459025f46..7214a4a1e 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.replaceAll('.', '_')}_${id}`; + const partialKey = `${addon.manifest.id.split('.').join('_')}_${id}`; const translatedName = stringWithPrefix(partialKey, 'CATALOG_', name); if (type && withType) {