A bug report by gerhard revealed that the topics page displays blankly when the interface language is set to German (or French) on meta.discourse.org. The issue was traced to a site customization script that incorrectly hardcoded English translations for ‘Bugs’ and ‘Features’ categories within the buildList function. simon identified that moving these translations out of the function and dynamically referencing the current locale resolves the crash. sam confirmed the root cause was the pattern used for localization in site customizations. He corrected the code to use I18n.translations[I18n.locale] instead of hardcoding .en.js, ensuring translations load correctly for all languages. While the fix works, sam noted minor residual glitches, including unread status translation issues in Hebrew and a formatting error with ‘1.2k’ on the front page.
Since this morning, I’m getting a blank page when I visit meta.discouse.org as long as I’m using German as interface language. I can’t test this anywhere else right now (try.discourse.org doesn’t allow users to change the interface language), but it’s definitely a problem here on meta.
Steps to reproduce:
Go to the user preferences
Change the interface language to “de”
Go back to the topic list and refresh the page
It seems to work with “ru”, but it looks like “fr” doesn’t work either.
When I add that as a customization to the head section of my site I get similar results to what I’m seeing on meta when I change the locale to ‘fr’ or ‘de’. Moving the ‘bugs’ and ‘features’ translations out of the buildList function seems to solve the problem.
OK, this works, but I did notices some hebrew glitches a unread is not translated properly and @simon it looks like 1.2k has the k in the wrong side on front page