From f300000b387500abbf61e84e527872f673d480c6 Mon Sep 17 00:00:00 2001 From: Inokentii Mazhara Date: Wed, 15 Nov 2023 19:29:23 +0200 Subject: [PATCH] TW-1148 Fix behavior for the case the native language is English --- src/lib/i18n/core.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/i18n/core.ts b/src/lib/i18n/core.ts index de7527df8a..dd868ec336 100644 --- a/src/lib/i18n/core.ts +++ b/src/lib/i18n/core.ts @@ -56,7 +56,9 @@ export function getMessage(messageName: string, substitutions?: Substitutions) { const fallbackVal = fallback?.[messageName]; - return fallbackVal ? applySubstitutions(fallbackVal, substitutions) : ''; + return fallbackVal + ? applySubstitutions(fallbackVal, substitutions) + : browser.i18n.getMessage(messageName, substitutions) ?? ''; } export function getDateFnsLocale() {