From 44bbe588017b9cbcdca7cc9fbde88f70028510c8 Mon Sep 17 00:00:00 2001 From: Federico <38290480+FedeIlLeone@users.noreply.github.com> Date: Mon, 11 Nov 2024 16:22:54 +0100 Subject: [PATCH] fix: missing string for addon enable failures --- i18n/en-US.messages.d.ts | 13 +++++++++++++ i18n/en-US.messages.js | 1 + src/renderer/coremods/settings/pages/Addons.tsx | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/i18n/en-US.messages.d.ts b/i18n/en-US.messages.d.ts index 77901fb2d..d33d63620 100644 --- a/i18n/en-US.messages.d.ts +++ b/i18n/en-US.messages.d.ts @@ -1983,6 +1983,19 @@ declare const messages: { * Missing translations: `bg`, `da`, `el`, `he`, `hi`, `hr`, `lt`, `no`, `pt-PT`, `ro` */ 'REPLUGGED_TOAST_ADDON_DISABLE_SUCCESS': TypedIntlMessageGetter<{name: any}>, + /** + * Key: `j+ClUl` + * + * ### Definition + * ```text + * Failed to enable {name} + * ``` + * + * ### Problems + * + * Missing translations: `ar`, `bg`, `cs`, `da`, `de`, `el`, `en-GB`, `es-ES`, `fi`, `fr`, `he`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `lt`, `nl`, `no`, `pl`, `pt-BR`, `pt-PT`, `ro`, `ru`, `sk`, `sv-SE`, `tr`, `uk`, `vi`, `zh-CN`, `zh-TW` + */ + 'REPLUGGED_TOAST_ADDON_ENABLE_FAILED': TypedIntlMessageGetter<{name: any}>, /** * Key: `k0hIQ0` * diff --git a/i18n/en-US.messages.js b/i18n/en-US.messages.js index 6505cb20b..c9ebe4246 100644 --- a/i18n/en-US.messages.js +++ b/i18n/en-US.messages.js @@ -210,6 +210,7 @@ export default defineMessages({ REPLUGGED_SEARCH_FOR_ADDON: "Search for a {type}", REPLUGGED_TOAST_ADDON_DISABLE_FAILED: "Failed to disable {name}", REPLUGGED_TOAST_ADDON_DISABLE_SUCCESS: "Disabled {name}", + REPLUGGED_TOAST_ADDON_ENABLE_FAILED: "Failed to enable {name}", REPLUGGED_TOAST_ADDON_ENABLE_SUCCESS: "Enabled {name}", REPLUGGED_TOAST_ADDON_RELOAD_FAILED: "Failed to reload {name}", REPLUGGED_TOAST_ADDON_RELOAD_SUCCESS: "Reloaded {name}", diff --git a/src/renderer/coremods/settings/pages/Addons.tsx b/src/renderer/coremods/settings/pages/Addons.tsx index 0ceb7f1f8..a458b4e8f 100644 --- a/src/renderer/coremods/settings/pages/Addons.tsx +++ b/src/renderer/coremods/settings/pages/Addons.tsx @@ -418,7 +418,7 @@ function Cards({ } catch (e) { logger.error("Error enabling", addon, e); toast.toast( - intl.formatToPlainString(t.REPLUGGED_TOAST_ADDON_ENABLE_SUCCESS, { + intl.formatToPlainString(t.REPLUGGED_TOAST_ADDON_ENABLE_FAILED, { name: label(type), }), toast.Kind.FAILURE,