We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5474e14 commit 15bdb72Copy full SHA for 15bdb72
src/utils/wordpress-i18n.js
@@ -4,20 +4,20 @@
4
import * as hooks from '@wordpress/hooks';
5
import * as i18n from '@wordpress/i18n';
6
7
+initializeWordPressI18n();
8
+
9
/**
10
* Initialize WordPress i18n globals by defining i18n-related modules on the
11
* `window.wp` namespace. This must be done before other WordPress modules are
12
* loaded, as they depend on i18n being configured.
13
*
14
* @return {void}
15
*/
-export function initializeWordPressI18n() {
16
+function initializeWordPressI18n() {
17
// Initialize the wp namespace if it doesn't exist
18
window.wp = window.wp || {};
19
20
// Define i18n-related WordPress modules on window.wp
21
window.wp.hooks = hooks;
22
window.wp.i18n = i18n;
23
}
-
-initializeWordPressI18n();
0 commit comments