Skip to content

Commit

Permalink
fix: missing string for addon enable failures
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeIlLeone committed Nov 11, 2024
1 parent d92bf84 commit 44bbe58
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions i18n/en-US.messages.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
*
Expand Down
1 change: 1 addition & 0 deletions i18n/en-US.messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/coremods/settings/pages/Addons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 44bbe58

Please sign in to comment.