discourse/app/assets/javascripts/discourse-i18n
Loïc Guitaut cfa4f07378 FIX: Don't crash when MF definitions are missing
Currently, if MF definitions are missing (typically because there’s a
compilation error), `I18n.messageFormat` will try to access
`I18n._mfMessages.hasMessage` resulting in a crash that will in turn
crash Ember.

This patch addresses the issue by using the optional chaining operator
making the `I18n.messageFormat` method return a "Missing Key" message.
MF strings won’t be rendered properly, but the site will stay usable.
2024-07-29 18:13:17 +02:00
..
src FIX: Don't crash when MF definitions are missing 2024-07-29 18:13:17 +02:00
addon-main.cjs
package.json DEV: Upgrade the MessageFormat library (JS) 2024-07-10 09:51:25 +02:00