mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
f2cdc3b2a4
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 |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |