Skip to content

Commit

Permalink
TW-1148 Fix behavior for the case the native language is English
Browse files Browse the repository at this point in the history
  • Loading branch information
keshan3262 committed Nov 15, 2023
1 parent 3a9d593 commit f300000
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/i18n/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f300000

Please sign in to comment.