discourse/app
Godfrey Chan f84832957d
DEV: use explicit default export in I18n shim (#22519)
Currently the I18n module shim return an object. Per AMD/loader.js,
the properties on the object becomes named exports of the module,
i.e. `import { t } from 'I18n';`.

However, this is not how we actually consume this module. We always
do `import I18n from 'I18n';`.

The returned object from the shim (`window.I18n`) does NOT have a
`default` property on it. This is only working because loader.js
has a `makeDefaultExport` feature that defaults to true, which we
are relying on to synthesize the default export for us.

That feature has been noted as undesirable and may some day be
deprecated. In Embroider, it specifically disables the feature in
loader.js.

https://github.com/embroider-build/embroider/issues/539
2023-07-10 22:06:18 +01:00
..
assets DEV: use explicit default export in I18n shim (#22519) 2023-07-10 22:06:18 +01:00
controllers FEATURE: Warn about outdated translation overrides in admin dashboard (#22384) 2023-07-10 10:06:40 +08:00
helpers UX: Improve login required page (#20847) 2023-03-28 07:09:44 -05:00
jobs FEATURE: Warn about outdated translation overrides in admin dashboard (#22384) 2023-07-10 10:06:40 +08:00
mailers FIX: don't add "Re:" prefix in email subject for first post of group PMs. (#22175) 2023-06-19 18:52:00 +05:30
models FEATURE: Show tooltip for bootstrap mode (#22257) 2023-07-10 20:42:09 +03:00
serializers DEV: Try fix category form template flaky (#22461) 2023-07-06 14:42:59 +10:00
services FIX: post alerter notification when topic directly watched (#22433) 2023-07-06 11:27:23 +10:00
views DEV: add class for static login description section (#22002) 2023-06-08 19:51:41 +05:30