Wrong JS Translations loading
-
You register the translations with the domain woocommerce:
/wordpress/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Loader.php:383 wp_register_script( WC_ADMIN_APP, self::get_url( 'app/index.js' ), array( 'wc-components', 'wc-navigation', 'wp-date', 'wp-html-entities', 'wp-keycodes', 'wp-i18n', 'moment' ), self::get_file_version( 'app/index.js' ), true ); wp_set_script_translations( WC_ADMIN_APP, 'woocommerce' );
But you use other domain (woocommerce-admin) in JS-file:
/wordpress/wp-content/plugins/woocommerce/packages/woocommerce-admin/dist/app/index.js Object(_e.__)("No data for the current search","woocommerce-admin")
woocommerce and woocommerce-admin are the different domains. Therefore the translations do not work ??
Could you please fix it?
P.S. The problem is in all JS-files. Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Wrong JS Translations loading’ is closed to new replies.