Hi Hannah
it doesn’t work
Not only does it not work but also the Kadence dashboard panel is gone!
You can see the screenshot below:
https://snipboard.io/ELyw6C.jpg
Note that we have already translated these settings by this handle ‘kadence-customizer-controls’ and all translations are being shown correctly but without using wp_register_script() and wp_enqueue_script() translations are not shown.
While using wp_register_script() and wp_enqueue_script() functions after registering and enqueuing the main js file in your theme, we get this error in console:
Uncaught SyntaxError: import declarations may only appear at top level of a module ( customizer.js:6 )
thanks for your help in advance