This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
TypeError: wp.i18n is undefined in new Mini Cart Block #6153
Labels
block: mini-cart
Issues related to the Mini-Cart block.
focus: i18n
The issue/PR is related to internationalization.
type: bug
The issue/PR concerns a confirmed bug.
Describe the bug
With the new MiniCart Block, its inline JavScript for translation purposes is loaded before wp object and i18n object, so a few TypeError are thrown and no translation is applied.
wp.i18n.setLocaleData( localeData, domain )
To reproduce
Steps to reproduce the behavior:
Expected behavior
Widget string to be translated
WordPress:
Desktop:
The text was updated successfully, but these errors were encountered: