Make WordPress Core


Ignore:
Timestamp:
11/08/2018 11:33:46 AM (6 years ago)
Author:
herregroen
Message:

I18N: Set translations for all WordPress packages scripts.

Calls wp_set_script_translations for all packages scripts that have translations. Also correctly sets the domain on the translations.

Props omarreiss, pento, ocean90.
Fixes #45161.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-admin/edit-form-blocks.php

    r43861 r43878  
    115115    );
    116116}
    117 
    118 // Prepare Jed locale data.
    119 $locale_data = wp_get_jed_locale_data( 'default' );
    120 wp_add_inline_script(
    121     'wp-i18n',
    122     'wp.i18n.setLocaleData( ' . wp_json_encode( $locale_data ) . ' );'
    123 );
    124117
    125118// Preload server-registered block schemas.
Note: See TracChangeset for help on using the changeset viewer.