const { __ } not working in IE11

The setting of constants:

const {__, _x, _n, sprintf} = wp.i18n;

does not work in Ie11 and Safari browsers. It returns an error in the console:

Expected identifier

marking the “{” character.

Is there a way to define them that does work?

Read more here:: const { __ } not working in IE11

Leave a Reply

Your email address will not be published. Required fields are marked *