Frappe Translation is taken too long

Hi. I find out why is frappe v5 taken too long to load pages.
46 seconds against 6 seconds is the time it takes to load setup page with translation and without translations respectively.

I made my experiments in macos and linux, with (vagrant) and without VM, and with portuguese and spanish languages and the conclusion is that translation is taken too much time.

In version 4 this problem doesn’t occurs.

@luisfmfernandes thanks! pushed a fix, now it should be a breeze

https://github.com/frappe/frappe/commit/86a990527b77e59eba4b66b9613ae956d7b35b31

Hi.
It is ok now!
Thanks.