TypeError: I18n.translations[I18n.currentLocale(...)].js.composer is undefined
After checking things a bit, it turns out that
I18n.currentLocale()
"en_US"
but it looks like en_US is not defined when looking at I18n.translations
I18n.translations
{
en: Object { js: {…} }
}
Bummer!
Everything works fine when switching my personal account to plain “English” after navigating to https://community.hiveeyes.org/?safe_mode=no_custom, but we fear everyone will have “English (United States)” in her interface settings which was also the default setting for me. We also deactivated all plugins to make sure its not one of them who is the culprit.
Does someone have an idea what we have been running into here?
Easiest solution: Switch the default locale to English (en instead of en_US).
Or make sure that your plugins and theme (components) ensure that the js.composer key actually exist. We recently fixed a similar issue in DiscoTOC - automatic table of contents.
Ah, it’s a theme component! I should probably update this and everything will be fine again. Sorry for the noise and thanks for bringing me on track!
That’s it! Of course it wasn’t in the list of plugins and updating the theme component as you suggested worked like a charm. Currently rebuilding with plugins activated.