refactor(useTranslate): use new key format for catalog

This commit is contained in:
Tim 2024-01-30 13:49:54 +01:00
parent 3fb210f38b
commit ec3afdcfe6

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) {