[wp-trac] [WordPress Trac] #50732: Block Directory: Support installing blocks in languages other than English

WordPress Trac noreply at wordpress.org
Thu Jul 23 06:56:47 UTC 2020


#50732: Block Directory: Support installing blocks in languages other than English
--------------------------+---------------------
 Reporter:  ryelle        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.5
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------

Comment (by dd32):

 [https://github.com/WordPress/wordpress-develop/pull/427 PR 427] installs
 the translation language packs for a plugin when a plugin is installed via
 the REST API.

 I specifically added language pack data to the `plugin information`
 endpoint to allow installing a singular language pack, rather than the
 default behaviour of the Language Pack Upgrader which installs every
 language update for all items (core/plugins/themes) and can only get the
 information once the update_plugins API call is made, all of which
 would've slowed the API endpoint down too much IMHO.

 That works in combination with
 https://github.com/WordPress/gutenberg/pull/24117 well in my testing,
 however, I'm struggling to find blocks which have translations and
 properly call `wp_set_script_translations()`, so testing that translations
 load has been difficult.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50732#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list