Shows a warning if the user tries to refresh or exit the page while translating.