diff --git a/src/lib/i18n/core.ts b/src/lib/i18n/core.ts index 01d10015c0..de7527df8a 100644 --- a/src/lib/i18n/core.ts +++ b/src/lib/i18n/core.ts @@ -48,9 +48,11 @@ export function getMessage(messageName: string, substitutions?: Substitutions) { if (targetVal) return applySubstitutions(targetVal, substitutions); - const nativeVal = browser.i18n.getMessage(messageName, substitutions); + if (!target) { + const nativeVal = browser.i18n.getMessage(messageName, substitutions); - if (nativeVal && !target) return nativeVal; + if (nativeVal) return nativeVal; + } const fallbackVal = fallback?.[messageName];