johnbillion / query-monitor

The developer tools panel for WordPress
https://querymonitor.com
GNU General Public License v2.0
1.59k stars 208 forks source link

Languages panel is empty if loading of translation files is cached #703

Closed ocean90 closed 1 year ago

ocean90 commented 1 year ago

I'm testing a plugin which hooks into pre_load_script_translations and override_load_textdomain to cache the file loading/parsing. Thus, on second load, the collector won't be able to collect any languages anymore which is fine. But this also makes the languages panel empty. It doesn't show the information about the current locales and the hooks filter doesn't work either. I think that information should still work.

Current:

Bildschirmfoto 2022-11-10 um 08 52 36 Bildschirmfoto 2022-11-10 um 08 52 41

Expected:

Bildschirmfoto 2022-11-10 um 08 51 53 Bildschirmfoto 2022-11-10 um 08 51 59