discourse/app/views
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
..
about FIX: crawler view with unicode usernames (#27051) 2024-05-16 17:11:24 +02:00
admin/backups
application
badges
categories
common UX: remove default use of quaternary color, update nav pill styles (#27502) 2024-06-24 09:54:34 -04:00
default DEV: allow themes to render their own custom homepage (#26291) 2024-04-02 11:05:08 -04:00
email DEV: update base url links to respect subfolder installs (#27740) 2024-07-09 12:42:38 +04:00
embed
exceptions DEV: Block accidental serialization of entire AR models (#27668) 2024-07-01 17:08:48 -03:00
finish_installation
groups
invites
layouts DEV: Upgrade the MessageFormat library (JS) 2024-07-10 09:51:25 +02:00
list UX: Include message when crawler content is omitted (#26325) 2024-03-22 17:24:57 +00:00
metadata
offline
posts
published_pages
qunit DEV: Upgrade the MessageFormat library (JS) 2024-07-10 09:51:25 +02:00
robots_txt removed broken link and comments from no_index.erb (#25648) 2024-02-14 12:09:24 +08:00
safe_mode FIX: Prevent admin sidebar errors in safe mode (#25832) 2024-02-23 17:04:42 +10:00
search
session
sitemap
static UX: Rename FAQ to Guidelines (#27451) 2024-06-13 12:09:53 -03:00
tags
topics FIX: deleted topic author in crawler view (#27788) 2024-07-09 10:44:03 +02:00
user_api_keys
user_notifications FIX: send activity summaries based on "last seen" (#27035) 2024-05-22 10:23:03 +02:00
users FIX: Account activation under ember-5 build (#24722) 2023-12-05 17:49:40 +00:00