I found the issue when using it on a site with WPML but it could be a problem in other situations as well. As the load_plugin_textdomain call is not done in an action, it might be triggered too early, which is the case for WPML. Simply moving it into the after_setup_theme action solves this.
I found the issue when using it on a site with WPML but it could be a problem in other situations as well. As the
load_plugin_textdomain
call is not done in an action, it might be triggered too early, which is the case for WPML. Simply moving it into theafter_setup_theme
action solves this.