Using a vue development (spun up by parcel.js) server with wordpress

I’m trying to develop an admin ui for a custom admin page using vue. I’m using Using the following article: https://premium.wpmudev.org/blog/creating-a-hybrid-single-page-app-wordpress-with-vuejs/ I’m spinning up a development server and enqueuing the address of the js generated by parcel. Unfortunately I’m running into a problem. When I visit my page I get an error in the console:…

How to reload wordpress textdomains at runtime

I’m currently using this to reload my theme and plugin textdomain in order to send e-mails (admin move, in admin language) in the user language. add_filter(“theme_locale”, array($this, “theme_locale”), 9999, 2); add_filter(“plugin_locale”, array($this, “plugin_locale”), 9999, 2); $this->load_textdomains(); remove_filter(“theme_locale”, array($this, “theme_locale”), 9999, 2); remove_filter(“plugin_locale”, array($this, “plugin_locale”), 9999, 2); public function load_textdomains() { if (function_exists(“WC”)) { WC()->load_plugin_textdomain(); }…