Our React app is loading very slow. There are two error messages in console, here’s a copy/paste of one:
overrides?v=6d9be5a7a7c1c9c05aa5b8bb1d7a43a1:1 Uncaught ReferenceError: I18n is not defined
at overrides?v=6d9be5a7a7c1c9c05aa5b8bb1d7a43a1:1:1
module-shims.js:5 Uncaught ReferenceError: I18n is not defined
at a.callback (module-shims.js:5:1)
at a.exports (loader.js:106:1)
at a._reify (loader.js:143:1)
at a.reify (loader.js:130:1)
at a.exports (loader.js:104:1)
at a._reify (loader.js:143:1)
at a.reify (loader.js:130:1)
at a.exports (loader.js:104:1)
at a._reify (loader.js:143:1)
at a.reify (loader.js:130:1)
Here’s what it shows in Sources:
I18n._overrides = {}; (here it shows an X symbol to indicate this line is the problem)
I18n._overrides['en'] = {
"js.filters.categories.title": "Departments",
"js.user.preferences_nav.categories": "Departments",
"js.user.categories_settings": "Departments",
"admin_js.admin.reseed.modal.categories": "Departments",
"js.categories.category": "Departments",
"js.category.all": "All Departments",
"js.category.list": "List Departments",
"js.categories.all": "all departments",
"js.categories_list": "Departments List",
"js.user.summary.top_categories": "Top Departments",
"js.categories.reorder.title": "Reorder Departments",
"js.categories.subcategories": "Sub Departments",
"js.category.list_filters.none": "no sub departments",
"js.categories.category_list": "Display departments list",
"js.categories.n_more": "Departments (%{count} more) ...",
"js.category_page_style.categories_only": "Departments Only",
"js.filters.categories.title_in": "Department - %{categoryName}",
"js.topic.browse_all_categories": "Browse all departments",
"admin_js.admin.wizard.action.watch_categories.categories": "Departments"
};
I18n._mfOverrides = {};
Can you see what needs to be changed?