discourse/app
Martin Brennan f2cdc3b2a4
FIX: Take into account language fallbacks for admin sidebar plugin links (#27061)
This commit fixes an issue where I18n.lookup was being used to
check if a link had a valid I18n key when the `addAdminSidebarSectionLink`
plugin API was used. However this was imperfect -- usually when we do
`I18n.t`, we fall back to the default locale (`en`), but if
`I18n.lookup` is used we do not do this, so we were removing the link
needlessly.

This issue was identified via the plugin API's use in https://github.com/discourse/docker_manager

c.f. https://meta.discourse.org/t/new-admin-sidebar-wheres-the-update-discourse-button/308213/15?u=martin
2024-05-20 09:41:53 +10:00
..
assets FIX: Take into account language fallbacks for admin sidebar plugin links (#27061) 2024-05-20 09:41:53 +10:00
controllers FIX: group activity's mentions infinite loading (#27070) 2024-05-18 00:26:57 +02:00
helpers FIX: Include HTML content for authenticated users with crawler UA (#26757) 2024-04-25 22:41:57 +01:00
jobs DEV: Update bulk-invite logs and PM template (#27057) 2024-05-17 12:21:21 -06:00
mailers Revert "FIX: send activity summaries based on "last seen"" (#27029) 2024-05-15 14:09:29 +08:00
models FIX: group activity's mentions infinite loading (#27070) 2024-05-18 00:26:57 +02:00
serializers FEATURE: Extend embeddable hosts with Individual tags and author assignments (#26868) 2024-05-16 15:47:01 -04:00
services FIX: crawler view with unicode usernames (#27051) 2024-05-16 17:11:24 +02:00
views FIX: crawler view with unicode usernames (#27051) 2024-05-16 17:11:24 +02:00