A user, Zoltan_Szathmary, encountered a white page and 404 error when attempting to change the default locale of their Discourse site from English (_en) to Hungarian (_hu). The locale file hu.js was incomplete, but still present on the server.
TechAPJ questioned the availability of the Hungarian locale, but later provided a solution to revert the locale back to English by running specific commands on the server (#4).
After implementing the solution, Zoltan_Szathmary revealed that the issue was caused by an incomplete, self-created test locale file. Although the problem was on their side, it was suggested that Discourse could improve its handling of such situations, rather than returning a blank page.
I wanted to change the locale of my discourse site from _en to _hu. When I did that in the admin settings / basic settings, the page came back white with a 404 error on the hu.js.
javascripts/locales/hu.js
Any recommendation how to set it back to english would be much appreciated!
It turned out that we here at my company created a test locale, but it wasn’t finished (not even started, per se), but we had a file remaining on the server that the discourse thought to be a valid locale file. That’s why I could find _hu, even if it wasn’t finished on our side.
So the mistake was on our side as we didn’t cooperate and talk it through.
Still, it might pose a bug, as discourse didn’t know how to handle this situ but came back blank instead. Might be worth looking into.
Thanks for the help and the quick response, saved my day. Cheers!