Suggest to use `window.addEventListener('localized', ...);` as this ensures we don't do heavy tasks (settings to database and localizing) at the same time.