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 FIX: Offer site_logo_dark_url as an option for dark mode themes (#14361) 2021-09-16 17:47:51 -04:00
badges
categories UX: Include subcategories in crawler view (#21227) 2023-04-25 10:51:45 -04:00
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 FIX: Ensure embedded replies/reply-to links open in _blank (#14597) 2021-10-13 21:34:30 +01:00
exceptions DEV: Block accidental serialization of entire AR models (#27668) 2024-07-01 17:08:48 -03:00
finish_installation FIX: Broken images on subfolder installs (#19404) 2022-12-09 11:24:12 -07:00
groups FEATURE: add title tag for group detail page (#13702) 2021-07-12 20:05:57 +05:30
invites FIX: broken emoji url on password reset w/ subfolder (#19373) 2022-12-09 10:01:43 -07:00
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 UX: Remove Helvetica from our font stack (#11876) 2021-02-05 17:01:21 -05:00
posts FEATURE: use canonical links in posts.rss feed (#16190) 2022-03-15 20:17:06 +11:00
published_pages FIX: use normal logo in published pages if small not available. 2020-09-21 09:20:39 +05:30
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 FEATURE: Rename 'Discourse SSO' to DiscourseConnect (#11978) 2021-02-08 10:04:33 +00:00
sitemap FEATURE: Let sites add a sitemap.xml file. (#16357) 2022-04-12 10:33:59 -03:00
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