This thread is resolved. Here is a description of the problem and solution.
Problem:
You are experiencing an issue when switching from English to French on your website, receiving an error message indicating that the translation loading for the health-check domain was triggered too early. This suggests that some code in a plugin or theme is running prematurely.
Solution:
We recommend ensuring that all your plugins, especially the one mentioned in the error message, are updated to their latest versions. You can check for updates in the 'Plugins → Add New Plugin → Commercial' tab by clicking the 'Check for updates' button. Additionally, updating the WPML plugin to the latest version, which is 4.7.1, might help as it includes the latest bug fixes and improvements. For detailed instructions on updating WPML, please visit http://wpml.org/faq/install-wpml/.
For more information on this specific error, you can visit https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.