discourse/app/views/layouts
Loïc Guitaut 301713ef96 DEV: Upgrade the MessageFormat library (JS)
This patch upgrades the MessageFormat library to version 3.3.0 from
0.1.5.

Our `I18n.messageFormat` method signature is unchanged, and now uses the
new API under the hood.

We don’t need dedicated locale files for handling pluralization rules
anymore as everything is now included by the library itself.

The compilation of the messages now happens through our
`messageformat-wrapper` gem. It then outputs an ES module that includes
all its needed dependencies.

Most of the changes happen in `JsLocaleHelper` and in the `ExtraLocales`
controller.

A new method called `.output_MF` has been introduced in
`JsLocaleHelper`. It handles all the fetching, compiling and
transpiling to generate the proper MF messages in JS. Overrides and
fallbacks are also handled directly in this method.

The other main change is that now the MF translations are served through
the `ExtraLocales` controller instead of being statically compiled in a
JS file, then having to patch the messages using overrides and
fallbacks. Now the MF translations are just another bundle that is
created on the fly and cached by the client.
2024-07-10 09:51:25 +02:00
..
_head.html.erb FIX: Add theme-color `<meta>` tag when a dark scheme is selected (#18747) 2022-10-26 07:18:05 +03:00
_noscript_footer.html.erb UX: Rename FAQ to Guidelines (#27451) 2024-06-13 12:09:53 -03:00
_noscript_header.html.erb DEV: remove H1 from crawler view header (#18201) 2022-09-12 10:46:00 -04:00
application.html.erb DEV: Upgrade the MessageFormat library (JS) 2024-07-10 09:51:25 +02:00
crawler.html.erb UX: Style edits (#19927) 2023-02-15 11:02:16 -06:00
email_template.html.erb Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
embed.html.erb FEATURE: Allow embedded view to include a header (#20150) 2023-02-06 11:10:50 -05:00
ember_cli.html.erb DEV: Document `ALLOW_EMBER_CLI_PROXY_BYPASS` in error page (#19315) 2022-12-05 13:44:16 +00:00
finish_installation.html.erb FEATURE: revamped wizard (#17477) 2022-07-27 06:53:01 +05:30
no_ember.html.erb FEATURE: Add experimental tracking of 'real browser' pageviews (#26647) 2024-04-25 11:00:01 +01:00
publish.html.erb FEATURE: Add experimental tracking of 'real browser' pageviews (#26647) 2024-04-25 11:00:01 +01:00